Repository "Languages" showing incorrect information #157106
Replies: 5 comments 5 replies
-
Yeah, GitHub's language stats can get thrown off by generated files like Allure reports. I had the same issue with Jupyter notebooks once—it took a .gitattributes tweak to fix it Low-Fume Xtreme Lash Adhesive. Tagging the right folders as linguist-generated helped the language breakdown reflect actual code. |
Beta Was this translation helpful? Give feedback.
-
Add this to your repo’s .gitattributes file: |
Beta Was this translation helpful? Give feedback.
-
Hi @QATester35D, To exclude your *.html linguist-detectable=false |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
I notice in my Why is this so far off? What can I do about it? I will research |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
How do you get the Languages section of the main page of my repository to update correctly? My repo is mainly python code, however I implemented Allure Reports (also tried out pytest-html) and I think the Allure Reports is what skewed the stats because Allure Reports creates a ton of html files. I deleted them assuming that was the issue but the languages stat won't update. I want it to reflect python since that is what I'm showing with the repo. I found a previous "Bug" on this (#54854) but I don't believe it really applies as it mentioned adding a line to ".github/fsharp-custom-action/** -linguist-vendored" (not even sure where I'd add that and my code is python not F#). Originally I clicked into the "HTML %" and it said it had to reindex the code but it has never updated in days.

Beta Was this translation helpful? Give feedback.
All reactions