aboutcode-org / aboutcode-org/scancode-toolkit

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

Đang mở
#3,388 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.