Excluding languages not working #6394
-
Hello, I have a
And the language bar being rendered as: I added the detection for the docs folder since it's ignored by default. Now, what I would like to do is to exclude non-programming files: .svg, .md and .json. So my
The last line should exclude .svg files from the stats but unfortunately that doesn't work. The following is rendered instead: Everything else but the Adblock filter and JS is shown as Other. Why is that, is that intended or a bug? Note: I tried with all 3 extensions (.md, .svg, .json), same thing, this is just an example. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is expected. It means there is one or more identified languages that are less than 1% of the total identified languages by bytes of code. In this case, as it's more than 1%, it'll be multiple languages, probably the HTML (~0.3%) + CSS (~1.0%) + something else (JSON? - ~0.3%) depending on what the overrides were when you took the screenshot (I'm AFK so can't check myself). You might be able to get rid of this by continuing to add more exclusions, or switch things around and only add Start with just overriding the documentation: docs/** -linguist-documentation This will count all the files in there that are normally counted outside of this directory, which won't include |
Beta Was this translation helpful? Give feedback.
This is expected. It means there is one or more identified languages that are less than 1% of the total identified languages by bytes of code. In this case, as it's more than 1%, it'll be multiple languages, probably the HTML (~0.3%) + CSS (~1.0%) + something else (JSON? - ~0.3%) depending on what the overrides were when you took the screenshot (I'm AFK so can't check myself).
You might be able to get rid of this by continuing to add more exclusions, or switch things around and only add
docs
overrides for the files you want to count.Start with just overriding the documentation: