Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a gitattributes file here, used for linguist-vendored

GitHub - Coder2195Text/space-chaos: A little space game.[^]

My code is falsely reporting the stats, due to heavy amounts of node modules and source code. All I want it to report is code for the release, all compiled.

But it doesn't seem to linguist-vendor.

What I have tried:

Asking my coding expert friends but they have no idea.
Posted
Updated 19-Jun-21 8:02am

1 solution

Maybe the way GitHub updates the statistics has something to do with it:
Quote:
As this analysis is performed by a low priority background job, it can take a while, particularly during busy periods, for your language statistics bar to reflect your changes.
See: linguist/how-linguist-works.md at master · github/linguist · GitHub[^]

Also see this article: introducing-github-linguist[^]

And also note:
Quote:
Linguist doesn't count the lines of code for each language, but the bytes.
git - linguist-vendored and linguist-language not working in .gitattributes file - Stack Overflow[^]

You could check this by committing another file that is very large, e.g. a C# file, and see if the statistics change.
 
Share this answer
 
v3
Comments
Coder2195Text 19-Jun-21 15:43pm    
"As this analysis is performed by a low priority background job, it can take a while, particularly during busy periods, for your language statistics bar to reflect your changes." BUT I HAVE WAITED DAYS
RickZeeland 19-Jun-21 15:50pm    
Ah, very patient of you :)
Then maybe the last note might shine some light on this, otherwise you could post this as an issue on GitHub.
Coder2195Text 19-Jun-21 15:59pm    
I already did

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900