diff --git a/tests/cluecode/data/plugin_filter_clues/filtered-expected.json b/tests/cluecode/data/plugin_filter_clues/filtered-expected.json index debf58b416f..e0364de1cb6 100644 --- a/tests/cluecode/data/plugin_filter_clues/filtered-expected.json +++ b/tests/cluecode/data/plugin_filter_clues/filtered-expected.json @@ -77,9 +77,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "apache-1.1" ], + "unknown_license_expressions": [], "percentage_of_license_text": 92.44, "copyrights": [ { diff --git a/tests/cluecode/data/plugin_filter_clues/filtered-expected2.json b/tests/cluecode/data/plugin_filter_clues/filtered-expected2.json index 5a65662021d..79ba4f6ac4c 100644 --- a/tests/cluecode/data/plugin_filter_clues/filtered-expected2.json +++ b/tests/cluecode/data/plugin_filter_clues/filtered-expected2.json @@ -77,9 +77,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "pygres-2.2" ], + "unknown_license_expressions": [], "percentage_of_license_text": 69.38, "copyrights": [ { diff --git a/tests/cluecode/data/plugin_filter_clues/filtered-expected3.json b/tests/cluecode/data/plugin_filter_clues/filtered-expected3.json index bc4203307cb..04d30cb1e09 100644 --- a/tests/cluecode/data/plugin_filter_clues/filtered-expected3.json +++ b/tests/cluecode/data/plugin_filter_clues/filtered-expected3.json @@ -33,12 +33,12 @@ "sha256": "408dfe8f9a70ea7bc9feaa9f77fb731ada0c26dc39008fdc5ead52d0442c656f", "mime_type": "text/plain", "file_type": "ASCII text", - "programming_language": null, + "programming_language": "verilog", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": false, + "is_source": true, "is_script": false, "licenses": [ { @@ -77,9 +77,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "pcre" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], diff --git a/tests/formattedcode/data/json/simple-expected.json b/tests/formattedcode/data/json/simple-expected.json index f23f61476a8..3dac406c2b7 100644 --- a/tests/formattedcode/data/json/simple-expected.json +++ b/tests/formattedcode/data/json/simple-expected.json @@ -39,7 +39,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -70,7 +72,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { diff --git a/tests/formattedcode/data/json/simple-expected.jsonpp b/tests/formattedcode/data/json/simple-expected.jsonpp index fb8300cb63c..af7869ddde2 100644 --- a/tests/formattedcode/data/json/simple-expected.jsonpp +++ b/tests/formattedcode/data/json/simple-expected.jsonpp @@ -39,7 +39,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -70,7 +72,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { diff --git a/tests/formattedcode/data/json/tree/expected.json b/tests/formattedcode/data/json/tree/expected.json index abd296a1329..08611f477a6 100644 --- a/tests/formattedcode/data/json/tree/expected.json +++ b/tests/formattedcode/data/json/tree/expected.json @@ -40,7 +40,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { @@ -83,7 +85,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { @@ -126,7 +130,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { @@ -169,7 +175,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -200,7 +208,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { @@ -243,7 +253,10 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [],"license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { @@ -286,7 +299,10 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { @@ -329,7 +345,10 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { diff --git a/tests/formattedcode/data/yaml/simple-expected.yaml b/tests/formattedcode/data/yaml/simple-expected.yaml index 0eb1bd37cb2..1bfca30bbc9 100644 --- a/tests/formattedcode/data/yaml/simple-expected.yaml +++ b/tests/formattedcode/data/yaml/simple-expected.yaml @@ -38,7 +38,9 @@ files: is_source: no is_script: no licenses: [] + unknown_licenses: [] license_expressions: [] + unknown_license_expressions: [] percentage_of_license_text: '0' copyrights: [] holders: [] @@ -67,7 +69,9 @@ files: is_source: yes is_script: no licenses: [] + unknown_licenses: [] license_expressions: [] + unknown_license_expressions: [] percentage_of_license_text: '0' copyrights: - value: Copyright (c) 2000 ACME, Inc. diff --git a/tests/formattedcode/data/yaml/tree/expected.yaml b/tests/formattedcode/data/yaml/tree/expected.yaml index 2109b3b61f9..77b9253e8f0 100644 --- a/tests/formattedcode/data/yaml/tree/expected.yaml +++ b/tests/formattedcode/data/yaml/tree/expected.yaml @@ -39,7 +39,9 @@ files: is_source: yes is_script: no licenses: [] + unknown_licenses: [] license_expressions: [] + unknown_license_expressions: [] percentage_of_license_text: '0' copyrights: - value: Copyright (c) 2000 ACME, Inc. @@ -74,7 +76,9 @@ files: is_source: yes is_script: no licenses: [] + unknown_licenses: [] license_expressions: [] + unknown_license_expressions: [] percentage_of_license_text: '0' copyrights: - value: Copyright (c) 2000 ACME, Inc. @@ -109,7 +113,9 @@ files: is_source: yes is_script: no licenses: [] + unknown_licenses: [] license_expressions: [] + unknown_license_expressions: [] percentage_of_license_text: '0' copyrights: - value: Copyright (c) 2000 ACME, Inc. @@ -144,7 +150,9 @@ files: is_source: no is_script: no licenses: [] + unknown_licenses: [] license_expressions: [] + unknown_license_expressions: [] percentage_of_license_text: '0' copyrights: [] holders: [] @@ -173,7 +181,9 @@ files: is_source: yes is_script: no licenses: [] + unknown_licenses: [] license_expressions: [] + unknown_license_expressions: [] percentage_of_license_text: '0' copyrights: - value: Copyright (c) 2000 ACME, Inc. @@ -208,7 +218,9 @@ files: is_source: yes is_script: no licenses: [] + unknown_licenses: [] license_expressions: [] + unknown_license_expressions: [] percentage_of_license_text: '0' copyrights: - value: Copyright (c) 2000 ACME, Inc. @@ -243,7 +255,9 @@ files: is_source: yes is_script: no licenses: [] + unknown_licenses: [] license_expressions: [] + unknown_license_expressions: [] percentage_of_license_text: '0' copyrights: - value: Copyright (c) 2000 ACME, Inc. @@ -278,7 +292,9 @@ files: is_source: yes is_script: no licenses: [] + unknown_licenses: [] license_expressions: [] + unknown_license_expressions: [] percentage_of_license_text: '0' copyrights: - value: Copyright (c) 2000 ACME, Inc. diff --git a/tests/licensedcode/data/plugin_license/license_url.expected.json b/tests/licensedcode/data/plugin_license/license_url.expected.json index ad98a74e1a6..4bafc9419b1 100644 --- a/tests/licensedcode/data/plugin_license/license_url.expected.json +++ b/tests/licensedcode/data/plugin_license/license_url.expected.json @@ -21,7 +21,9 @@ "path": "license_url", "type": "directory", "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "scan_errors": [] }, @@ -65,9 +67,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "apache-1.0" ], + "unknown_license_expressions": [], "percentage_of_license_text": 97.61, "scan_errors": [] } diff --git a/tests/licensedcode/data/plugin_license/package/package.expected.json b/tests/licensedcode/data/plugin_license/package/package.expected.json index b7b3bd42ecf..b2527e6fdd4 100644 --- a/tests/licensedcode/data/plugin_license/package/package.expected.json +++ b/tests/licensedcode/data/plugin_license/package/package.expected.json @@ -57,9 +57,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 4.05, "packages": [ { diff --git a/tests/licensedcode/data/plugin_license/sqlite/sqlite.expected.json b/tests/licensedcode/data/plugin_license/sqlite/sqlite.expected.json index 4f9ebf16aa5..a9a6d054169 100644 --- a/tests/licensedcode/data/plugin_license/sqlite/sqlite.expected.json +++ b/tests/licensedcode/data/plugin_license/sqlite/sqlite.expected.json @@ -21,7 +21,9 @@ "path": "sqlite.tgz", "type": "directory", "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "scan_errors": [] }, @@ -4926,6 +4928,7 @@ "matched_text": "** The author disclaims copyright to this source code. In place of\n** a legal notice, here is a blessing:\n**\n** May you do good and not evil.\n** May you find forgiveness for yourself and forgive others.\n** May you share freely, never taking more than you give." } ], + "unknown_licenses": [], "license_expressions": [ "blessing", "blessing", @@ -5064,6 +5067,7 @@ "blessing", "blessing" ], + "unknown_license_expressions": [], "percentage_of_license_text": 36.67, "scan_errors": [] } diff --git a/tests/scancode/data/info/all.expected.json b/tests/scancode/data/info/all.expected.json index 4e88ce3489e..2b1921d8230 100644 --- a/tests/scancode/data/info/all.expected.json +++ b/tests/scancode/data/info/all.expected.json @@ -40,7 +40,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -71,7 +73,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -102,7 +106,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -133,7 +139,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -164,7 +172,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -195,7 +205,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -226,7 +238,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -257,7 +271,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -324,9 +340,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "bsd-original-uc" ], + "unknown_license_expressions": [], "percentage_of_license_text": 4.83, "copyrights": [ { @@ -375,7 +393,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -479,9 +499,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "gpl-2.0 OR bsd-new" ], + "unknown_license_expressions": [], "percentage_of_license_text": 19.01, "copyrights": [ { diff --git a/tests/scancode/data/plugin_only_findings/basic.expected.json b/tests/scancode/data/plugin_only_findings/basic.expected.json index ce703b94a21..8316e17de04 100644 --- a/tests/scancode/data/plugin_only_findings/basic.expected.json +++ b/tests/scancode/data/plugin_only_findings/basic.expected.json @@ -76,9 +76,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "bsd-original-uc" ], + "unknown_license_expressions": [], "percentage_of_license_text": 4.83, "copyrights": [ { @@ -200,9 +202,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "gpl-2.0 OR bsd-new" ], + "unknown_license_expressions": [], "percentage_of_license_text": 19.01, "copyrights": [ { diff --git a/tests/scancode/data/unicodepath/unicodepath.expected-mac.json b/tests/scancode/data/unicodepath/unicodepath.expected-mac.json index a1b62919977..bdb3874f8a9 100644 --- a/tests/scancode/data/unicodepath/unicodepath.expected-mac.json +++ b/tests/scancode/data/unicodepath/unicodepath.expected-mac.json @@ -42,7 +42,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -75,7 +77,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -108,7 +112,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -141,7 +147,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], diff --git a/tests/scancode/data/unicodepath/unicodepath.expected-mac.json--quiet b/tests/scancode/data/unicodepath/unicodepath.expected-mac.json--quiet index 2af72c55bec..eb17314c34f 100644 --- a/tests/scancode/data/unicodepath/unicodepath.expected-mac.json--quiet +++ b/tests/scancode/data/unicodepath/unicodepath.expected-mac.json--quiet @@ -43,7 +43,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -76,7 +78,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -109,7 +113,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -142,7 +148,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], diff --git a/tests/scancode/data/unicodepath/unicodepath.expected-mac.json--verbose b/tests/scancode/data/unicodepath/unicodepath.expected-mac.json--verbose index e8d7c6b4298..9e509bb8403 100644 --- a/tests/scancode/data/unicodepath/unicodepath.expected-mac.json--verbose +++ b/tests/scancode/data/unicodepath/unicodepath.expected-mac.json--verbose @@ -43,7 +43,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -76,7 +78,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -109,7 +113,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -142,7 +148,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], diff --git a/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json b/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json index f8d7a4cabc3..f34dd265291 100644 --- a/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json +++ b/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json @@ -42,7 +42,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -75,7 +77,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -108,7 +112,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -141,7 +147,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], diff --git a/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json--quiet b/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json--quiet index 005474174cd..f67dc4ffa1b 100644 --- a/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json--quiet +++ b/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json--quiet @@ -43,7 +43,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -76,7 +78,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -109,7 +113,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -142,7 +148,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], diff --git a/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json--verbose b/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json--verbose index 6c00b842269..770d5a59a0d 100644 --- a/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json--verbose +++ b/tests/scancode/data/unicodepath/unicodepath.expected-mac14.json--verbose @@ -43,7 +43,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -76,7 +78,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -109,7 +113,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -142,7 +148,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], diff --git a/tests/scancode/data/unicodepath/unicodepath.expected-win.json b/tests/scancode/data/unicodepath/unicodepath.expected-win.json index f8d7a4cabc3..f34dd265291 100644 --- a/tests/scancode/data/unicodepath/unicodepath.expected-win.json +++ b/tests/scancode/data/unicodepath/unicodepath.expected-win.json @@ -42,7 +42,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -75,7 +77,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -108,7 +112,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -141,7 +147,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], diff --git a/tests/scancode/data/unicodepath/unicodepath.expected-win.json--quiet b/tests/scancode/data/unicodepath/unicodepath.expected-win.json--quiet index 005474174cd..f67dc4ffa1b 100644 --- a/tests/scancode/data/unicodepath/unicodepath.expected-win.json--quiet +++ b/tests/scancode/data/unicodepath/unicodepath.expected-win.json--quiet @@ -43,7 +43,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -76,7 +78,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -109,7 +113,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -142,7 +148,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], diff --git a/tests/scancode/data/unicodepath/unicodepath.expected-win.json--verbose b/tests/scancode/data/unicodepath/unicodepath.expected-win.json--verbose index 6c00b842269..770d5a59a0d 100644 --- a/tests/scancode/data/unicodepath/unicodepath.expected-win.json--verbose +++ b/tests/scancode/data/unicodepath/unicodepath.expected-win.json--verbose @@ -43,7 +43,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -76,7 +78,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -109,7 +113,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -142,7 +148,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], diff --git a/tests/summarycode/data/end-2-end/bug-1141.expected.json b/tests/summarycode/data/end-2-end/bug-1141.expected.json index b7269153314..6e9bb857fdc 100644 --- a/tests/summarycode/data/end-2-end/bug-1141.expected.json +++ b/tests/summarycode/data/end-2-end/bug-1141.expected.json @@ -138,7 +138,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -175,7 +177,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -212,7 +216,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -249,7 +255,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -322,9 +330,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "gpl-3.0-plus" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], @@ -363,7 +373,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -402,7 +414,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -439,7 +453,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -476,7 +492,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -549,9 +567,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "gpl-2.0-plus" ], + "unknown_license_expressions": [], "percentage_of_license_text": 80.95, "copyrights": [ { @@ -602,7 +622,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { diff --git a/tests/summarycode/data/full_summary/summary.expected.json b/tests/summarycode/data/full_summary/summary.expected.json index 88e1961fde4..061bd6e7129 100644 --- a/tests/summarycode/data/full_summary/summary.expected.json +++ b/tests/summarycode/data/full_summary/summary.expected.json @@ -3070,7 +3070,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -3101,7 +3103,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -3132,7 +3136,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -3199,9 +3205,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "lgpl-2.1-plus" ], + "unknown_license_expressions": [], "percentage_of_license_text": 79.62, "copyrights": [ { @@ -3280,9 +3288,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "cc-by-2.5" ], + "unknown_license_expressions": [], "percentage_of_license_text": 19.72, "copyrights": [ { @@ -3367,9 +3377,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "lgpl-2.1-plus" ], + "unknown_license_expressions": [], "percentage_of_license_text": 78.62, "copyrights": [ { @@ -3412,7 +3424,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -3449,7 +3463,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -3522,9 +3538,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "lgpl-2.1-plus" ], + "unknown_license_expressions": [], "percentage_of_license_text": 78.12, "copyrights": [ { @@ -3567,7 +3585,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -3604,7 +3624,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -3635,7 +3657,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -3702,9 +3726,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 42.86, "copyrights": [ { @@ -3783,9 +3809,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 69.57, "copyrights": [ { @@ -3864,9 +3892,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 20.34, "copyrights": [ { @@ -3945,9 +3975,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "cc0-1.0" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], @@ -4014,9 +4046,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "artistic-2.0" ], + "unknown_license_expressions": [], "percentage_of_license_text": 0.07, "copyrights": [], "holders": [], @@ -6898,7 +6932,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -6929,7 +6965,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -7033,9 +7071,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "gpl-2.0-plus WITH ada-linking-exception" ], + "unknown_license_expressions": [], "percentage_of_license_text": 94.12, "copyrights": [ { @@ -7114,9 +7154,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 42.86, "copyrights": [ { @@ -7195,9 +7237,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 40.0, "copyrights": [ { @@ -7276,9 +7320,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 50.0, "copyrights": [ { @@ -7321,7 +7367,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -7352,7 +7400,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { @@ -7431,9 +7481,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "boost-1.0" ], + "unknown_license_expressions": [], "percentage_of_license_text": 88.89, "copyrights": [ { @@ -7476,7 +7528,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -7543,9 +7597,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 50.38, "copyrights": [ { @@ -7594,7 +7650,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -7661,9 +7719,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 44.44, "copyrights": [ { @@ -7742,9 +7802,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 50.0, "copyrights": [ { @@ -7787,7 +7849,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -7854,9 +7918,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit-old-style" ], + "unknown_license_expressions": [], "percentage_of_license_text": 79.78, "copyrights": [ { @@ -7935,9 +8001,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 84.21, "copyrights": [ { @@ -8016,9 +8084,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 37.5, "copyrights": [ { @@ -8097,9 +8167,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 20.34, "copyrights": [ { diff --git a/tests/summarycode/data/full_summary/summary_key_files.expected.json b/tests/summarycode/data/full_summary/summary_key_files.expected.json index 49ed8775bfd..9e3eb1bf638 100644 --- a/tests/summarycode/data/full_summary/summary_key_files.expected.json +++ b/tests/summarycode/data/full_summary/summary_key_files.expected.json @@ -269,7 +269,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -304,7 +306,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -339,7 +343,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -410,9 +416,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "lgpl-2.1-plus" ], + "unknown_license_expressions": [], "percentage_of_license_text": 79.62, "copyrights": [ { @@ -495,9 +503,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "cc-by-2.5" ], + "unknown_license_expressions": [], "percentage_of_license_text": 19.72, "copyrights": [ { @@ -586,9 +596,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "lgpl-2.1-plus" ], + "unknown_license_expressions": [], "percentage_of_license_text": 78.62, "copyrights": [ { @@ -635,7 +647,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -676,7 +690,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -753,6 +769,7 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "lgpl-2.1-plus" ], @@ -802,7 +819,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -843,7 +862,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -878,7 +899,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -949,9 +972,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 42.86, "copyrights": [ { @@ -1034,9 +1059,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 69.57, "copyrights": [ { @@ -1122,6 +1149,7 @@ "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 20.34, "copyrights": [ { @@ -1204,9 +1232,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "cc0-1.0" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], @@ -1277,9 +1307,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "artistic-2.0" ], + "unknown_license_expressions": [], "percentage_of_license_text": 0.07, "copyrights": [], "holders": [], @@ -1320,7 +1352,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -1355,7 +1389,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -1463,9 +1499,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "gpl-2.0-plus WITH ada-linking-exception" ], + "unknown_license_expressions": [], "percentage_of_license_text": 94.12, "copyrights": [ { @@ -1548,9 +1586,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 42.86, "copyrights": [ { @@ -1633,9 +1673,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 40.0, "copyrights": [ { @@ -1718,9 +1760,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 50.0, "copyrights": [ { @@ -1767,7 +1811,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -1802,7 +1848,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { @@ -1885,9 +1933,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "boost-1.0" ], + "unknown_license_expressions": [], "percentage_of_license_text": 88.89, "copyrights": [ { @@ -1934,7 +1984,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -2005,9 +2057,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 50.38, "copyrights": [ { @@ -2060,7 +2114,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -2131,9 +2187,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 44.44, "copyrights": [ { @@ -2216,9 +2274,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 50.0, "copyrights": [ { @@ -2265,7 +2325,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -2336,9 +2398,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit-old-style" ], + "unknown_license_expressions": [], "percentage_of_license_text": 79.78, "copyrights": [ { @@ -2421,9 +2485,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 84.21, "copyrights": [ { @@ -2506,9 +2572,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 37.5, "copyrights": [ { @@ -2591,9 +2659,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "zlib" ], + "unknown_license_expressions": [], "percentage_of_license_text": 20.34, "copyrights": [ { diff --git a/tests/summarycode/data/plugin_consolidate/license-holder-rollup-expected.json b/tests/summarycode/data/plugin_consolidate/license-holder-rollup-expected.json index 5734bec4cf1..707d0bcee00 100644 --- a/tests/summarycode/data/plugin_consolidate/license-holder-rollup-expected.json +++ b/tests/summarycode/data/plugin_consolidate/license-holder-rollup-expected.json @@ -39,12 +39,12 @@ { "type": "holders", "identifier": "corp_oracle_1", - "consolidated_license_expression": "apache-2.0", + "consolidated_license_expression": "apache-2.0 AND unknown-license-reference", "consolidated_holders": [ "Oracle Corp." ], "consolidated_copyright": "Copyright (c) Oracle Corp.", - "core_license_expression": "apache-2.0", + "core_license_expression": "unknown-license-reference AND apache-2.0", "core_holders": [ "Oracle Corp." ], diff --git a/tests/summarycode/data/score/basic-expected.json b/tests/summarycode/data/score/basic-expected.json index 3835635b406..97d4010246b 100644 --- a/tests/summarycode/data/score/basic-expected.json +++ b/tests/summarycode/data/score/basic-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -119,9 +121,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 80.9, "copyrights": [], "holders": [], @@ -192,9 +196,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 64.4, "copyrights": [ { @@ -277,9 +283,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 1.83, "copyrights": [], "holders": [], diff --git a/tests/summarycode/data/score/consistent_licenses-expected.json b/tests/summarycode/data/score/consistent_licenses-expected.json index 007a95678e4..ce0ac0e6e57 100644 --- a/tests/summarycode/data/score/consistent_licenses-expected.json +++ b/tests/summarycode/data/score/consistent_licenses-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -83,7 +85,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -154,9 +158,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 1.83, "copyrights": [], "holders": [], @@ -197,7 +203,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -268,9 +276,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], diff --git a/tests/summarycode/data/score/consistent_licenses_not-expected.json b/tests/summarycode/data/score/consistent_licenses_not-expected.json index 64b3731daf8..e29badeac41 100644 --- a/tests/summarycode/data/score/consistent_licenses_not-expected.json +++ b/tests/summarycode/data/score/consistent_licenses_not-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -83,7 +85,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -154,9 +158,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 1.83, "copyrights": [], "holders": [], @@ -197,7 +203,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -268,9 +276,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "apache-2.0" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], diff --git a/tests/summarycode/data/score/consistent_licenses_not_spdx-expected.json b/tests/summarycode/data/score/consistent_licenses_not_spdx-expected.json index a03c64607bf..3e9642665fe 100644 --- a/tests/summarycode/data/score/consistent_licenses_not_spdx-expected.json +++ b/tests/summarycode/data/score/consistent_licenses_not_spdx-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -119,9 +121,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit-xfig" ], + "unknown_license_expressions": [], "percentage_of_license_text": 68.07, "copyrights": [], "holders": [], @@ -156,7 +160,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -197,7 +203,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -268,9 +276,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit-xfig" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], diff --git a/tests/summarycode/data/score/file_coverage-expected.json b/tests/summarycode/data/score/file_coverage-expected.json index 2fb49f64417..c3b8f9069fe 100644 --- a/tests/summarycode/data/score/file_coverage-expected.json +++ b/tests/summarycode/data/score/file_coverage-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -83,7 +85,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -197,7 +201,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -317,7 +323,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { @@ -364,7 +372,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [ { diff --git a/tests/summarycode/data/score/full_text-expected.json b/tests/summarycode/data/score/full_text-expected.json index c457dd667dc..9813a821fa6 100644 --- a/tests/summarycode/data/score/full_text-expected.json +++ b/tests/summarycode/data/score/full_text-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -83,7 +85,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -154,9 +158,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 1.83, "copyrights": [], "holders": [], @@ -197,7 +203,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -268,9 +276,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], @@ -341,9 +351,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], diff --git a/tests/summarycode/data/score/full_text_in_key_files-expected.json b/tests/summarycode/data/score/full_text_in_key_files-expected.json index e2751133615..164bb592323 100644 --- a/tests/summarycode/data/score/full_text_in_key_files-expected.json +++ b/tests/summarycode/data/score/full_text_in_key_files-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -119,9 +121,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], @@ -156,7 +160,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -227,9 +233,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 1.83, "copyrights": [], "holders": [], @@ -270,7 +278,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -341,9 +351,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], diff --git a/tests/summarycode/data/score/single_file-expected.json b/tests/summarycode/data/score/single_file-expected.json index 3dce57d4dc6..b185c5cf75e 100644 --- a/tests/summarycode/data/score/single_file-expected.json +++ b/tests/summarycode/data/score/single_file-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -83,7 +85,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], diff --git a/tests/summarycode/data/score/spdx_licenses-expected.json b/tests/summarycode/data/score/spdx_licenses-expected.json index fa1464f9dbc..0ae2188c9dc 100644 --- a/tests/summarycode/data/score/spdx_licenses-expected.json +++ b/tests/summarycode/data/score/spdx_licenses-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -83,7 +85,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -154,9 +158,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 1.83, "copyrights": [], "holders": [], @@ -197,7 +203,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -268,9 +276,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], @@ -341,9 +351,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "apache-2.0" ], + "unknown_license_expressions": [], "percentage_of_license_text": 66.67, "copyrights": [], "holders": [], diff --git a/tests/summarycode/data/score/spdx_licenses_not-expected.json b/tests/summarycode/data/score/spdx_licenses_not-expected.json index 38aa30d7d0b..534e92319a1 100644 --- a/tests/summarycode/data/score/spdx_licenses_not-expected.json +++ b/tests/summarycode/data/score/spdx_licenses_not-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -83,7 +85,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -154,9 +158,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 1.83, "copyrights": [], "holders": [], @@ -197,7 +203,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -268,9 +276,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], @@ -341,9 +351,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "other-permissive" ], + "unknown_license_expressions": [], "percentage_of_license_text": 100.0, "copyrights": [], "holders": [], diff --git a/tests/summarycode/data/score/top_declared-expected.json b/tests/summarycode/data/score/top_declared-expected.json index 296de60cabe..91525e80aa2 100644 --- a/tests/summarycode/data/score/top_declared-expected.json +++ b/tests/summarycode/data/score/top_declared-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -83,7 +85,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -118,7 +122,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -189,9 +195,11 @@ } } ], + "unknown_licenses": [], "license_expressions": [ "mit" ], + "unknown_license_expressions": [], "percentage_of_license_text": 1.83, "copyrights": [], "holders": [], diff --git a/tests/summarycode/data/score/top_declared_not-expected.json b/tests/summarycode/data/score/top_declared_not-expected.json index df5bbb2e02e..befe3c7a7f7 100644 --- a/tests/summarycode/data/score/top_declared_not-expected.json +++ b/tests/summarycode/data/score/top_declared_not-expected.json @@ -48,7 +48,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -83,7 +85,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -118,7 +122,9 @@ "is_source": true, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [], @@ -153,7 +159,9 @@ "is_source": false, "is_script": false, "licenses": [], + "unknown_licenses": [], "license_expressions": [], + "unknown_license_expressions": [], "percentage_of_license_text": 0, "copyrights": [], "holders": [],