Skip to content

Knip does not ignore gitignored directory when it has bad permissions #172

@ChristophP

Description

@ChristophP

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:
grafik

I even tried adding ignore: ["mongodata/"] to the knip.json, but I still got the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions