Closed gruiz17 closed 10 years ago
This is because it's executable. Thus, LInguist considers every script languages as potential candidates (we could probably improve that...).
Oh weird, so is it considering the Cakefile as a Perl script?
Oh, that's really weird. I thought linguist detected Cakefiles as Coffeescript.
Not exactly. It only detects Coffeescript as a potential candidates for Cakefiles. But because your file is executable, all script languages are also candidates. And, in your case, the Bayesian classifier (who then chose the best candidate) wasn't able to detect it properly.
If you make your Cakefile non executable it should be detected as Coffeescript.
Alright, that solved it, thanks!
My repo sidescroller-stars is mostly CoffeeScript (besides HTML, CSS, and compiled JS). I don't think I have any Perl up in there. But linguist is saying it's over 70% Perl.
What could be causing linguist to do this?