src-d / enry

A faster file programming language detector
https://blog.sourced.tech/post/enry/
Apache License 2.0
460 stars 51 forks source link

Reports gitignore as vendor #229

Closed erizocosmico closed 5 years ago

erizocosmico commented 5 years ago

Enry says .gitignore is vendor, but shouldn't be. Is that intentional?

fmt.Println(enry.IsVendor(".gitignore")) // output: true
bzz commented 5 years ago

@erizocosmico thank you for question ~spotting - that seems like a bug as~ according to linguist that should be a vendor.

bzz commented 5 years ago

@erizocosmico sorry, I somehow have initially miss-read the question, adding a negation 🤦‍♂ .

Enry says .gitignore is vendor

Yes, it supposed to be that way, as that's what Linguist has defined 4 years ago.

Updated the answer above and will be closing, if that answers the questions.