github - Using gitattributes for linguist examples -
are there concrete examples, in order detect wrong languages in github via linguist attributes?
source: https://github.com/github/linguist
- linguist-documentation
- linguist-language
- linguist-vendored
examples can found in linguist's readme file. want can achieved linguist-language
attributes.
linguist-language
with following attribute, linguist detects .rb
files being java files.
*.rb linguist-language=java
linguist-vendored
with following attribute, linguist detects files in special-vendored-path
directory (notice trailing mandatory *
) vendored , excludes them statistics.
special-vendored-path/* linguist-vendored
linguist-documentation
without following attribute, linguist detect file docs/formatter.rb
documentation , exclude statistics.
docs/formatter.rb linguist-documentation=false
Comments
Post a Comment