aboutcode-org / aboutcode-org/scancode-toolkit
Not skipping node_modules directory
- Langage dominant
- Python
- Étoiles
- 2.6k
- Forks
- 791
- Merge moyen
- 1 j 12 h
- PR mergées (30 j)
- 5
Description
### Description
While scanning my node.js codebase, I could see it scan the node_modules directory as well, which is not necessary and time consuming.
### How To Reproduce

Snapshot 1: Codebase where node_modules was scanned

Snapshot 2: Codebase where `npm install` was not done (node_modules directory doesn't exist)
### Thoughts
This seems to be not working:
```
for child in resource.children(codebase):
if depth == 0 and child.name == 'node_modules':
continue
yield child
```
> For bug reports, it really helps us to know:
* What OS are you running on? (Windows/MacOS/Linux) - Windows 11
* What version of scancode-toolkit was used to generate the scan file? - v32.1.0-7-g4f49985c26
* What installation method was used to install/run scancode? (pip/source download/other) - source download
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.