Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix declared license not in discovered license for certain cases
In some cases, CD (scancode summarizer) goes through the root files to derive license information. file.licenses is an array of licenses with varying matching scores. Currently, after the license file is found, we concat all the license expressions as declared license (even though some of them have low matching scores). However, when the licenses are tallied from the files, those licenses with score lower than 80 are filtered out. This inconsistency causes the declared license does not show up in the discovered license (>80 score) in some cases. Refactor the logic, so that only license score above 80 is considered for declared license. Test case: https://clearlydefined.io/definitions/composer/packagist/colinmollenhour/cache-backend-redis/1.14.4
- Loading branch information