scancode says this file is under the JSON license, when in actuality there's no license information in this file at all:
$ 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": []
}
...
Description
scancode says this file is under the JSON license, when in actuality there's no license information in this file at all:
https://raw.githubusercontent.com/dotnet/dotnet/release/8.0.1xx/src/source-build-externals/src/xunit/xunit.sln
How To Reproduce
System configuration