Linguist concludes a JS/markdown repo with a single perl file is somehow "46.2% Perl" #5455
-
https://github.com/Pomax/BezierInfo-2 consists of 117 javascript files, 93 markdown files, 21 html files, 3 php files, 2 css files, and a single perl file. Yet somehow, the breakdown is: Perl 46.2% Rather than the expected: JavaScript 49.3% so something seems to be going very wrong here =) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Not from a Linguist perspective 😉 Maybe you missed the following when you read How Linguist Works:
This means all files in your Thus leaving only the files in
That single Perl file contains more bytes of code than all your JavaScript combined: $ curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/Pomax/BezierInfo-2/languages
{
"Perl": 62200,
"JavaScript": 57149,
"HTML": 13045,
"PHP": 2247
} So all in, Linguist is working as expected. If you wish to change this behaviour, you'll need to implement the relevant overrides to suit your desires. |
Beta Was this translation helpful? Give feedback.
Not from a Linguist perspective 😉 Maybe you missed the following when you read How Linguist Works:
This means all files in your
docs
dir will be ignored by default as they're considered documentation and all Markdown files will be ignored because they're consideredprose
.Thus leaving only the files in
src
which contains your Perl file and brings us to the nex…