Open kaustubhhiware opened 7 years ago
Related to https://github.com/coala/coala/issues/1079
Fwiw this is the snippet (in ruby) from linguist which we can translate to python
repo.languages.sort_by { |_, size| size }.reverse.each do |language, size|
percentage = ((size / repo.size.to_f) * 100).round
puts "%-4s %s" % ["#{percentage}%", language]
https://github.com/github/linguist/blob/4e0b5f02aa5746c69bfea647727bd2c12cd9ebe0/bin/linguist#L30
I ran
coala-quickstart --ci
on a project and the language statistics generated were as follows :This does not total to 100%. The language statistics for the same project on github were
Running linguist locally fetches the following stats :