This https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/plugin_license_policy.py should be a great addition as a pipe in pipelines.
There are several interesting issues that need a solution:
- running a standard plugin over a codebase stored in the DB
- dealing with packages as the current plugin may only handle file/resource licenses
- injecting the policy data which is a data file passed as a command line option in the toolkit
This https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/plugin_license_policy.py should be a great addition as a pipe in pipelines.
There are several interesting issues that need a solution: