aboutcode-org / aboutcode-org/scancode-toolkit

--ignore /math works, but --ignore /math/arm does not

Open
#3,388 2 comments 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

If I use `--ignore /math` then the whole math folder is ignored.
If I use `--ignore /math/arm` instead, I would now expect that the subfolder arm in the folder math is ignored. Instead, the folder is not ignored at all.
I also tried `--ignore /math/arm/*`, but it didn't work either.

I also tried removing the leading `/`, but that didn't improve things.

### How To Reproduce

Pass the above `--ignore` options.

### System configuration

* OS: Arch Linux
* Python verson 3.11.3
* scancode version 31.2.6
* installation method: pip install --user scancode-toolkit

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.