Skip to content
Discussion options

You must be logged in to vote

Issues, PRs, and markdown content don't count toward language stats. Linguist only looks at actual committed files in the repo.

So if HTML is showing up with a significant percentage, there's a real file in your repo that Linguist is picking up. Could be something you forgot was there: a generated HTML report, a docs folder, or a large file that got committed at some point. You can find it quickly with:

git ls-files | grep -i "\.html"

Once you know what it is, add it to .gitattributes in your repo root:

*.html linguist-detectable=false

Or if it's a whole directory (like a docs/ or dist/ folder):

docs/ linguist-vendored=true

linguist-vendored removes the path from stats entirely, useful …

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@dEhiN
Comment options

Comment options

You must be logged in to vote
1 reply
@dEhiN
Comment options

Comment options

You must be logged in to vote
1 reply
@dEhiN
Comment options

Answer selected by dEhiN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Question Ask and answer questions about GitHub features and usage source:ui Discussions created via Community GitHub templates
4 participants