Using gitattributes for linguist examples
Examples can be found in Linguist’s documentation. Detecting wrong languages (which’s what OP asks) can be achieved by setting linguist-language attributes in the .gitattributes file. linguist-language With the following attribute, Linguist detects all .rb files as being Java files. *.rb linguist-language=Java linguist-vendored With the following attribute, Linguist detects files in the special-vendored-path directory (notice the … Read more