A few huge .md
files list the whole repository as "HTML" (ignores .gitattributes
which has *.md linguist-vendored
). Wish to list as "C/C++"
#6915
-
https://github.com/SwuduSusuwu/ shows just language "HTML" for
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Your override is unnecessary as Linguist doesn't count Markdown files by default. The reason your repo is showing HTML is because your one HTML file in the repo outweighs all other languages in terms of total bytes of code:
At 273kb it is clearly much bigger than all the other files. If you click HTML in the sidebar you'll see it's the only search result for that language confirming this file is the reason. If you don't want it to count, vendor that file or extension, not Oh yes, and the language shown on the repo listing is showing the predominant language in the repo based on bytes of code, not what the repo language is. |
Beta Was this translation helpful? Give feedback.
-
Oops. Cool fix |
Beta Was this translation helpful? Give feedback.
-
🤨 I'm seeing languages: Maybe you didn't wait for the background job to finish before commenting |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
*.html -linguist-vendored
->c/rfc6234/* -linguist-vendored
success