aboutcode-org / scancode-analyzer

scancode-results-analyzer
4 stars 2 forks source link

Unique identifier fails in `is_license_intro` case #48

Closed AyanSinhaMahapatra closed 3 years ago

AyanSinhaMahapatra commented 3 years ago

The unique identifier for issues, a tuple consisting of identifier (rule name) and matched_coverage of all matches in that issue, fails to separate unique issues in some cases of is_license_intro is True, because of the matched_coverage being 100 and the identifier a common unknown rule.

Solution:- In cases where is_license_intro is True, add matched text in addition to the already existing identifier and matched_coverage attributes.