aboutcode-org / aboutcode-org/scancode-toolkit

Running scancode in a npm based repository takes long

Open
#2,478 18 comments 0 reactions 0 assignees View on GitHub
bug performance
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

### Description
* we want to include scancode in our pipeline but are running into timing issues
* scanning a code base with node_modules for a react / npm project is very slow (>5h).

### How To Reproduce
- npx create-react-app test
- install some more npm packages
- scancode -cl -n 4 --html-app /project/result.html /project

#### Small workaround
- we were able to reduce the time by including only text files (difficult to perform as the npm packages differ in structure / language and other types of files)

### System configuration
* running on macos (catalina/big sur)
* scancode version 21.3.31
* as an Application // scancode --help AND docker based

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.