aboutcode-org / scancode-toolkit

:mag: ScanCode detects licenses, copyrights, dependencies by "scanning code" ... to discover and inventory open source and third-party packages used in your code. Sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase, the Google Summer of Code, Azure credits, nexB and others generous sponsors!
https://aboutcode.org/scancode/
2.13k stars 548 forks source link

SCTK: Enhance the ignore_patterns option to exclude "scopes" as well as specific file paths #3773

Open DennisClark opened 6 months ago

DennisClark commented 6 months ago

Enhance the ignore_patterns scan option to exclude "scopes" as well as specific file paths

Benefit: takes advantage of scope definitions to streamline a scan

pombredanne commented 6 months ago

I think that we should not mix patterns to ignore files and list of dependency scopes or packages to ignore. These should be separate sections of the config file; and the patterns syntax and the code to implement them is completely different: we have globs for paths and plain combos of package type/scope names for the scopes. Also for now I think this issue is best in ScanCode.io as there is scancode-config.yml file support in SCTK for now, only in SCIO.

pombredanne commented 4 months ago

@AyanSinhaMahapatra I think this is done, is it?