aboutcode-org / aboutcode-org/scancode-toolkit

Ignored dotdirs are included in output file

Open
#3,928 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

### Description

Ignored (using the `--ignore` feature) dotdirs show up in the JSON output file.

### How To Reproduce

```
scancode -v --ignore ".*" --json-lines=scancode.json -l --strip-root .
```

no dotdirs show up in the verbose output (they are still analyzed based on subjective execution time), but they are included in the "scancode.json" file. Same behavior using explicit non-glob patterns, e.g. `--ignore ".venv"`.

### System configuration

* Linux
* scancode-toolkit 32.2.1
* rye (uv)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.