The installation methods install the scancode-analyzer post-scan plugin, installed with scancode, extending it to have the --analyze-license-results option.
scancode-analyzer
can be installed as a scancode post-scan plugin.
Clone the Repository and navigate to the
scancode-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 -il --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 path/to/scan_result.json --analyze-license-results
Note
scancode-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.
- Install all scancode prerequisites and create a virtualenvironment.
- Run pip install scancode-analyzer to install the latest version of Scancode Analyzer.