knip: Knip does not ignore gitignored directory when it has bad permissions
Hi,
I’m using the latest knip 2.17.0 on a Linux machine.
This is my knip config:
{
"entry": ["src/app.js", "scripts/**/*.js"],
"project": ["**/*.js"]
}
I have a directory called mongodata
in the project root, which contains MongoDB data from a DB that’s running in a docker container. Since it’s running in the docker container it has different file permission than the rest of the project files.
The mongodata folder is listed in my .gitignore
.
Nevertheless when I run knip I get this:
I even tried adding ignore: ["mongodata/"]
to the knip.json, but I still got the error.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 22 (9 by maintainers)
That PR replaces cq removes globby from the dependency list indeed.
That’s fine. The upstream issue is labelled with “help wanted” so it looks like they are looking for a contribution. It could take a while until it’s fixed.