Getting Started¶
Quickstart - Scancode Plugin¶
scancode-results-analyzer
can be installed as a scancode post-scan plugin.
Clone the Repository and navigate to the
scancode-results-analyzer
directory.Configure (Installs the requirements, and scancode-toolkit with the plugin):
./configure
Activate the Virtual Environment Created
source tmp/bin/activate
Run scancode for the first time for setup:
scancode -h
Run a scan using the
--analyze-license-results
command line options:scancode -l --json-pp output.json /path/to/scan_files/ --license-text --is-license-text --classify --analyze-license-results
OR, import a JSON scan result and run the plugin on that scan:
scancode --json-pp results.json --from-json tests/data/results-test/selective-before-rules-added/only_errors.json --analyze-license-results
Note
scancode-results-analyzer has required CLI options, as these produce attributes essential to the analysis process. These are: –license –info –license-text –is-license-text –classify Even when loading from json, the scan generating these json files should have been run with this options for the analysis plugin to work.