Open jonna-debricked opened 3 weeks ago
@jonna-debricked Thanks for the report.
@jonna-debricked thanks for the report! This is reproducible using just the text pasted in the query string, with latest scancode-toolkit versions:
"detected_license_expression": "epl-1.0",
"detected_license_expression_spdx": "EPL-1.0",
"license_detections": [
{
"license_expression": "epl-1.0",
"license_expression_spdx": "EPL-1.0",
"matches": [
{
"license_expression": "epl-1.0",
"license_expression_spdx": "EPL-1.0",
"from_file": "test",
"start_line": 1,
"end_line": 1,
"matcher": "2-aho",
"score": 98.0,
"matched_length": 3,
"match_coverage": 100.0,
"rule_relevance": 98,
"rule_identifier": "epl_no-version.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/epl_no-version.RULE",
"matched_text": "Eclipse Public License v2.0",
"matched_text_diagnostics": "Eclipse Public License"
}
],
"identifier": "epl_1_0-f87b11f7-1165-d9fd-5ab3-d065b420b554"
}
],
This should be fixed by the new https://github.com/aboutcode-org/scancode-toolkit/pull/3924 PR where we are creating required phrases out of rules and creating smaller rules out of those required phrases.
Description
Error in parsing version for
Eclipse Public License v2.0
, which trigger the wrong rule (rid=epl_no-version.RULE).The correct rule ( rid=epl-2.0_7.RULE) is triggered for both
Eclipse Public License v 2.0
and EclipsePublic License 2.0
.Eclipse Public License v1.0
trigger the correct rule (rid=epl-1.0_18.RULE)How To Reproduce
System configuration