Understanding Github's Language Calculations
Ever noticed this at the top of a Github repo?
This filetype percentage is calculated by Github's Linguist project.
I found several techniques to correct the Linguist evaluation; this pull request explains one I tried in greater detail.
My solution? Once I moved some vendored JS files into a directory with a name that Linguist ignores (
ace-builds/), the calculation started to look like a Rails app.
Here's the updated header:Tweet