Skip to content

Language Bar #5387

Answered by lildude
AssassinAguilar asked this question in Q&A
May 25, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Ooo, you've got a tricky one, and have a mistake. We'll start with the mistake: docs is considered documentation so you need to use the linguist-documentation override.

The tricky scenario is that your files under dist are considered both vendored (because of the directory) and generated (because the content is minified) so you need to use both linguist-vendored and linguist-generated overrides if you want them to count.

This will do the trick:

dist/** -linguist-vendored -linguist-generated
docs/** -linguist-documentation

I've used recursive wildcards so you don't have to keep updating it as you add new files and directories. I've also used the syntax that is not Linguist-specific. It's t…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by AssassinAguilar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants