aboutcode-org / aboutcode-org/scancode-toolkit

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

未關閉
#3,388 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。