-
-
Notifications
You must be signed in to change notification settings - Fork 600
Closed
Labels
Description
Description
Getting a false positive report of json
license from this section of text: https://github.com/dotnet/runtime/blob/0cc9f2193bb447db60a81b05986ef4f513bd2381/src/libraries/System.Configuration.ConfigurationManager/tests/Mono/LongValidatorTest.cs#L2-L28
How To Reproduce
Tell us how to reproduce the issue.
Download the contents of https://github.com/dotnet/runtime/blob/0cc9f2193bb447db60a81b05986ef4f513bd2381/src/libraries/System.Configuration.ConfigurationManager/tests/Mono/LongValidatorTest.cs
scancode -l LongValidatorTest.cs --json-pp report.json
Relevant output:
"files": [
{
"path": "LongValidatorTest.cs",
"type": "file",
"detected_license_expression": "mit AND json",
"detected_license_expression_spdx": "MIT AND JSON",
"license_detections": [
{
"license_expression": "mit AND json",
"matches": [
{
"score": 100.0,
"start_line": 2,
"end_line": 2,
"matched_length": 4,
"match_coverage": 100.0,
"matcher": "2-aho",
"license_expression": "mit",
"rule_identifier": "mit_88.RULE",
"rule_relevance": 100,
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_88.RULE"
},
{
"score": 85.71,
"start_line": 2,
"end_line": 28,
"matched_length": 150,
"match_coverage": 85.71,
"matcher": "3-seq",
"license_expression": "json",
"rule_identifier": "json3.RULE",
"rule_relevance": 100,
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/json3.RULE"
}
],
"identifier": "mit_and_json-d6b53c7d-8866-b679-c08d-8014791e3db1"
}
],
"license_clues": [],
"percentage_of_license_text": 41.35,
"scan_errors": []
}
]
System configuration
Windows, version 32.0.6, download