aboutcode-org / aboutcode-org/scancode.io

Ignoring paths by patterns does not remove them from package assembly

未关闭
#1,607 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
215
派生
203
平均合并
4 天 8 小时
30 天内合并 PR
6

描述

Currently ignoring a specific path with patterns (like [this](https://scancodeio.readthedocs.io/en/latest/project-configuration.html#ignored-patterns)) either thorugh the project settings or the a scancode configuration file does not remove these resources from the package assembly, this is beacuse:

* ignoring the resources by path still creates and stores the resources in the directory, it just updates it's status to `IGNORED_PATTERN`. I.e. it does not delete the resources from the database
* Other subsequent functions/pipes are expected to ignore these files by using this assigned status.
* If package assembly starts from a resource (having some package metadata detected) which is not ignored, then we walk the codebase from this resource to assign codebase resources to this package. This operation does not currently honour the ignored status as these functions are implemented for each ecosystem in scancode-toolkit.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。