Adblock filters not detected #6393
-
Hello, among other things, I have a repository where I store and maintain an Adblock filter list - actually a few of them. The repository is located at AdVoid and as you can see the language bar only shows JavaScript as the language used in the repository. One thing to note here is that all of my JavaScript files reside in the /docs folder, it's a React application and that folder is a rather new addition to the repository. A few months ago, I had only .txt filter lists and there was no language bar at all = no languages detected, thus, the React application is not the issue here. Also, what's weird as well is that the /docs folder contains HTML, CSS, JS and JSX files but only JS is detected. Any insight is very much appreciated, thanks! 🙏🏼 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Upon further research, I found a solution! 🙌🏼 If anyone has the same issue, all you have to do is to create a *.txt linguist-language=AdBlock linguist-detectable The glob Take a look at my .gitattributes file for more info. |
Beta Was this translation helpful? Give feedback.
Upon further research, I found a solution! 🙌🏼
If anyone has the same issue, all you have to do is to create a
.gitattributes
file in the root of your repo with the contents:*.txt linguist-language=AdBlock linguist-detectable
The glob
*.txt
means all .txt files, if your filters are in a special directory in your repo, update the glob accordingly.Take a look at my .gitattributes file for more info.