aboutcode-org / aboutcode-org/scancode.io

Ignoring paths by patterns does not remove them from package assembly

Open
#1,607 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
215
Forks
203
Avg merge
4d 8h
Merged PRs (30d)
6

Description

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.

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.