Resolve paths of .gitignore
files in subfolders
#36
Labels
bug
Something isn't working
classification
Related to classifying files
fixed
This issue has been fixed
In one of my project I'm using mypy, which automatically creates a
.mypy_cache
subfolder with its own.gitignore
file inside, and the file contains a single rule*
, which is supposed to mean "ignore everything in this subfolder". Because it already comes with its own.gitignore
, I didn't add the.mypy_cache
folder to my top-level.gitignore
file.Now comes the problem. As linguist-js read this file, it adds the rule
*
into its ignore list, resulting the report being nearly completely empty (except for a few dot-files).This looks like a bug to me. It should instead add
.mypy_cahce/*
after resolving the rule against the subfolder.My current workaround is just adding
.mypy_cache
folder to my top-level.gitignore
, so that the subfolder.gitignore
is never processed by linguist-js in the first place.The text was updated successfully, but these errors were encountered: