GitHub uses the Linguist library for source code detection; Linguist treats all of the paths defined in its' vendor.yml as vendored and won't include them in the language statistics for a repository.
You can specify something different for your repo by editing your repo's .gitattributes
file. To treat a path as a vendored file, add the path followed by linguist-vendored
:
special-vendored-path/* linguist-vendored
To treat an otherwise vendored path as unvendored, use linguist-vendored=false
:
jquery.js linguist-vendored=false
Source
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…