-
-
Notifications
You must be signed in to change notification settings - Fork 600
Closed
Labels
Description
Description
scancode says this file is under the JSON license, when in actuality there's no license information in this file at all:
How To Reproduce
$ wget https://raw.githubusercontent.com/dotnet/dotnet/release/8.0.1xx/src/source-build-externals/src/xunit/xunit.sln
$ /scancode --json-pp - --license --unknown-licenses --license-references xunit.sln
Setup plugins...
Collect file inventory...
Scan files for: licenses with 1 process(es)...
[####################] 2
{
"headers": [
{
"tool_name": "scancode-toolkit",
"tool_version": "32.0.7",
"options": {
"input": [
"xunit.sln"
],
"--json-pp": "-",
"--license": true,
"--license-references": true,
"--unknown-licenses": true
...
"files": [
{
"path": "xunit.sln",
"type": "file",
"detected_license_expression": "json",
"detected_license_expression_spdx": "JSON",
"license_detections": [
{
"license_expression": "json",
"matches": [
{
"score": 100.0,
"start_line": 20,
"end_line": 21,
"matched_length": 2,
"match_coverage": 100.0,
"matcher": "2-aho",
"license_expression": "json",
"rule_identifier": "json_5.RULE",
"rule_relevance": 100,
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/json_5.RULE"
}
],
"identifier": "json-a22df283-4cbb-b1f3-dac1-6aa82c584b30"
}
],
"license_clues": [],
"percentage_of_license_text": 0.02,
"scan_errors": []
}
...
System configuration
- What OS are you running on? Linux
- What version of scancode-toolkit was used to generate the scan file?32.0.7
- What installation method was used to install/run scancode? pip