"linguist-vendored=false" not working #21864
-
I’m trying to configure linguist to exclude files from my project. I have read this page, but maybe I don’t understand it: https://stackoverflow.com/questions/40659265/using-gitattributes-for-linguist-examples My .gitattributes file is here: https://github.com/danielb987/JavaDiptraceAsciiLib/blob/master/.gitattributes The files src/examples/javadiptraceasciilib/*.asc are data files that are very big and of no interest for statistics. The folders ‘findbugs’, ‘checkstyle’ and ‘coverage’ are third party software that’s included to validate the code and therefore should not be included in the statistics. When I go to this page and looks at the languages, I see a lot of files that shouldn’t be there. https://github.com/danielb987/JavaDiptraceAsciiLib/search?l=Shell What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @danielb987, Thanks for being part of the GitHub Community Forum! Lines 6-8 in your .gitattributes file are actually doing the opposite of what you want. Additionally, the only *.asc file being counted is I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks! Now it works as I want it to work. |
Beta Was this translation helpful? Give feedback.
Hi @danielb987,
Thanks for being part of the GitHub Community Forum!
Lines 6-8 in your .gitattributes file are actually doing the opposite of what you want.
linguist-vendored=false
means it will not be vendored; you want to havelinguist-vendored
.Additionally, the only *.asc file being counted is
src/examples/javadiptraceasciilib/Layers.asc
, and that’s becuase it’s not actually included in the .gitattributes file.I hope this helps!