-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(scanner): Use the new properties that configure scan storage usage
Use the previously introduced properties `readFromStorage` and `writeToStorage` to decide if scan results are read from or written to the configured scan storages. This provides more flexibility to the user than the previous mechanism which relied solely on the `matcher` property. This is mainly useful when using ORT programmatically in which case it can make sense to store scan results for other purposes than reusing them for follow-up scans. If `readFromStorage` is set to `true` but the `matcher` is `null`, scan results will not be read, as without the `matcher` there is no way to determine matching scan results. This is currently only the case for the `FossId` scanner which hardcodes the `matcher` to `null`. If the properties are not configured by the user, the defaults will behave exactly like before this change, meaning that scan results are read and written if the `matcher` is not `null`, and are not read and written otherwise. Signed-off-by: Martin Nonnenmacher <[email protected]>
- Loading branch information
1 parent
bd03101
commit 87db6d4
Showing
2 changed files
with
92 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters