Skip to content

Commit fdb1992

Browse files
Regen test expectations after removing license references as default
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 84eda21 commit fdb1992

File tree

137 files changed

+8
-22904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+8
-22904
lines changed

tests/formattedcode/data/json/simple-expected.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"packages": [],
33
"dependencies": [],
44
"license_detections": [],
5-
"license_references": [],
6-
"license_rule_references": [],
75
"files": [
86
{
97
"path": "simple",

tests/formattedcode/data/json/simple-expected.jsonpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"packages": [],
33
"dependencies": [],
44
"license_detections": [],
5-
"license_references": [],
6-
"license_rule_references": [],
75
"files": [
86
{
97
"path": "simple",

tests/formattedcode/data/json/tree/expected.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"packages": [],
33
"dependencies": [],
44
"license_detections": [],
5-
"license_references": [],
6-
"license_rule_references": [],
75
"files": [
86
{
97
"path": "copy1.c",

tests/formattedcode/data/yaml/simple-expected.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@ headers:
2222
system_environment:
2323
operating_system: linux
2424
cpu_architecture: 64
25-
platform: Linux-4.15.0-200-generic-x86_64-with-glibc2.23
26-
platform_version: '#211~16.04.2-Ubuntu SMP Fri Nov 25 09:18:48 UTC 2022'
27-
python_version: "3.9.10 (main, Jan 29 2022, 10:01:49) \n[GCC 5.4.0 20160609]"
25+
platform: Linux-5.14.0-1057-oem-x86_64-with-glibc2.29
26+
platform_version: '#64-Ubuntu SMP Mon Jan 23 17:02:19 UTC 2023'
27+
python_version: "3.8.10 (default, Nov 14 2022, 12:59:47) \n[GCC 9.4.0]"
2828
spdx_license_list_version: '3.20'
2929
files_count: 1
3030
packages: []
3131
dependencies: []
3232
license_detections: []
33-
license_references: []
34-
license_rule_references: []
3533
files:
3634
- path: simple
3735
type: directory

tests/formattedcode/data/yaml/tree/expected.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@ headers:
2323
system_environment:
2424
operating_system: linux
2525
cpu_architecture: 64
26-
platform: Linux-4.15.0-200-generic-x86_64-with-glibc2.23
27-
platform_version: '#211~16.04.2-Ubuntu SMP Fri Nov 25 09:18:48 UTC 2022'
28-
python_version: "3.9.10 (main, Jan 29 2022, 10:01:49) \n[GCC 5.4.0 20160609]"
26+
platform: Linux-5.14.0-1057-oem-x86_64-with-glibc2.29
27+
platform_version: '#64-Ubuntu SMP Mon Jan 23 17:02:19 UTC 2023'
28+
python_version: "3.8.10 (default, Nov 14 2022, 12:59:47) \n[GCC 9.4.0]"
2929
spdx_license_list_version: '3.20'
3030
files_count: 7
3131
packages: []
3232
dependencies: []
3333
license_detections: []
34-
license_references: []
35-
license_rule_references: []
3634
files:
3735
- path: copy1.c
3836
type: file

tests/licensedcode/data/plugin_license/license-expression/scan.expected.json

Lines changed: 0 additions & 238 deletions
Large diffs are not rendered by default.

tests/licensedcode/data/plugin_license/license-expression/spdx-expressions.expected.json

Lines changed: 0 additions & 140 deletions
Large diffs are not rendered by default.

tests/licensedcode/data/plugin_license/license_reference/license-ref-see-copying.expected.json

Lines changed: 0 additions & 136 deletions
Large diffs are not rendered by default.

tests/licensedcode/data/plugin_license/license_reference/scan-ref.expected.json

Lines changed: 0 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -41,138 +41,6 @@
4141
"detection_log": []
4242
}
4343
],
44-
"license_references": [
45-
{
46-
"key": "mit",
47-
"language": "en",
48-
"short_name": "MIT License",
49-
"name": "MIT License",
50-
"category": "Permissive",
51-
"owner": "MIT",
52-
"homepage_url": "http://opensource.org/licenses/mit-license.php",
53-
"notes": "Per SPDX.org, this license is OSI certified.",
54-
"is_builtin": true,
55-
"is_exception": false,
56-
"is_unknown": false,
57-
"is_generic": false,
58-
"spdx_license_key": "MIT",
59-
"other_spdx_license_keys": [],
60-
"osi_license_key": null,
61-
"text_urls": [
62-
"http://opensource.org/licenses/mit-license.php"
63-
],
64-
"osi_url": "http://www.opensource.org/licenses/MIT",
65-
"faq_url": "https://ieeexplore.ieee.org/document/9263265",
66-
"other_urls": [
67-
"https://opensource.com/article/18/3/patent-grant-mit-license",
68-
"https://opensource.com/article/19/4/history-mit-license",
69-
"https://opensource.org/licenses/MIT"
70-
],
71-
"key_aliases": [],
72-
"minimum_coverage": 0,
73-
"standard_notice": null,
74-
"ignorable_copyrights": [],
75-
"ignorable_holders": [],
76-
"ignorable_authors": [],
77-
"ignorable_urls": [],
78-
"ignorable_emails": [],
79-
"text": "Permission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
80-
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/mit.LICENSE",
81-
"licensedb_url": "https://scancode-licensedb.aboutcode.org/mit",
82-
"spdx_url": "https://spdx.org/licenses/MIT"
83-
},
84-
{
85-
"key": "unknown-license-reference",
86-
"language": "en",
87-
"short_name": "Unknown License reference",
88-
"name": "Unknown License file reference",
89-
"category": "Unstated License",
90-
"owner": "Unspecified",
91-
"homepage_url": null,
92-
"notes": "This applies to the case of a file with no clear license, which may be referenced via URL or text such as \"See license in...\" or \"This file is licensed under...\", but where the reference cannot be resolved to a specific named, public license.",
93-
"is_builtin": true,
94-
"is_exception": false,
95-
"is_unknown": true,
96-
"is_generic": false,
97-
"spdx_license_key": "LicenseRef-scancode-unknown-license-reference",
98-
"other_spdx_license_keys": [],
99-
"osi_license_key": null,
100-
"text_urls": [],
101-
"osi_url": null,
102-
"faq_url": null,
103-
"other_urls": [],
104-
"key_aliases": [],
105-
"minimum_coverage": 0,
106-
"standard_notice": null,
107-
"ignorable_copyrights": [],
108-
"ignorable_holders": [],
109-
"ignorable_authors": [],
110-
"ignorable_urls": [],
111-
"ignorable_emails": [],
112-
"text": "",
113-
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/unknown-license-reference.LICENSE",
114-
"licensedb_url": "https://scancode-licensedb.aboutcode.org/unknown-license-reference",
115-
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/unknown-license-reference.LICENSE"
116-
}
117-
],
118-
"license_rule_references": [
119-
{
120-
"license_expression": "mit",
121-
"identifier": "mit_66.RULE",
122-
"language": "en",
123-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_66.RULE",
124-
"is_license_text": false,
125-
"is_license_notice": true,
126-
"is_license_reference": false,
127-
"is_license_tag": false,
128-
"is_license_intro": false,
129-
"is_continuous": false,
130-
"is_builtin": true,
131-
"is_from_license": false,
132-
"is_synthetic": false,
133-
"length": 10,
134-
"relevance": 100,
135-
"minimum_coverage": 50,
136-
"referenced_filenames": [],
137-
"notes": null,
138-
"ignorable_copyrights": [],
139-
"ignorable_holders": [],
140-
"ignorable_authors": [],
141-
"ignorable_urls": [
142-
"http://opensource.org/licenses/MIT"
143-
],
144-
"ignorable_emails": [],
145-
"text": "that is licensed under [MIT](http://opensource.org/licenses/MIT)."
146-
},
147-
{
148-
"license_expression": "unknown-license-reference",
149-
"identifier": "unknown-license-reference_25.RULE",
150-
"language": "en",
151-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/unknown-license-reference_25.RULE",
152-
"is_license_text": false,
153-
"is_license_notice": false,
154-
"is_license_reference": false,
155-
"is_license_tag": true,
156-
"is_license_intro": false,
157-
"is_continuous": false,
158-
"is_builtin": true,
159-
"is_from_license": false,
160-
"is_synthetic": false,
161-
"length": 5,
162-
"relevance": 100,
163-
"minimum_coverage": 80,
164-
"referenced_filenames": [
165-
"LICENSE"
166-
],
167-
"notes": null,
168-
"ignorable_copyrights": [],
169-
"ignorable_holders": [],
170-
"ignorable_authors": [],
171-
"ignorable_urls": [],
172-
"ignorable_emails": [],
173-
"text": "license\": \"SEE LICENSE IN LICENSE"
174-
}
175-
],
17644
"files": [
17745
{
17846
"path": "LICENSE",

tests/licensedcode/data/plugin_license/license_reference/scan-unknown-reference-copyright.expected.json

Lines changed: 0 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -61,160 +61,6 @@
6161
"detection_log": []
6262
}
6363
],
64-
"license_references": [
65-
{
66-
"key": "unknown-license-reference",
67-
"language": "en",
68-
"short_name": "Unknown License reference",
69-
"name": "Unknown License file reference",
70-
"category": "Unstated License",
71-
"owner": "Unspecified",
72-
"homepage_url": null,
73-
"notes": "This applies to the case of a file with no clear license, which may be referenced via URL or text such as \"See license in...\" or \"This file is licensed under...\", but where the reference cannot be resolved to a specific named, public license.",
74-
"is_builtin": true,
75-
"is_exception": false,
76-
"is_unknown": true,
77-
"is_generic": false,
78-
"spdx_license_key": "LicenseRef-scancode-unknown-license-reference",
79-
"other_spdx_license_keys": [],
80-
"osi_license_key": null,
81-
"text_urls": [],
82-
"osi_url": null,
83-
"faq_url": null,
84-
"other_urls": [],
85-
"key_aliases": [],
86-
"minimum_coverage": 0,
87-
"standard_notice": null,
88-
"ignorable_copyrights": [],
89-
"ignorable_holders": [],
90-
"ignorable_authors": [],
91-
"ignorable_urls": [],
92-
"ignorable_emails": [],
93-
"text": "",
94-
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/unknown-license-reference.LICENSE",
95-
"licensedb_url": "https://scancode-licensedb.aboutcode.org/unknown-license-reference",
96-
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/unknown-license-reference.LICENSE"
97-
},
98-
{
99-
"key": "x11-xconsortium-veillard",
100-
"language": "en",
101-
"short_name": "X11-Style (X Consortium Veillard)",
102-
"name": "X11-Style (X Consortium Veillard)",
103-
"category": "Permissive",
104-
"owner": "Daniel Veillard",
105-
"homepage_url": null,
106-
"notes": "the license key has been renamed from the old x11-xconsortium_veillard",
107-
"is_builtin": true,
108-
"is_exception": false,
109-
"is_unknown": false,
110-
"is_generic": false,
111-
"spdx_license_key": "LicenseRef-scancode-x11-xconsortium-veillard",
112-
"other_spdx_license_keys": [
113-
"LicenseRef-scancode-x11-xconsortium_veillard"
114-
],
115-
"osi_license_key": null,
116-
"text_urls": [],
117-
"osi_url": null,
118-
"faq_url": null,
119-
"other_urls": [],
120-
"key_aliases": [],
121-
"minimum_coverage": 0,
122-
"standard_notice": "Except where otherwise noted in the source code (e.g. the files hash.c,\nlist.c and the trio files, which are covered by a similar licence but\nwith different Copyright notices) all the files are:\nCopyright (C) 1998-2003 Daniel Veillard. All Rights Reserved.\n",
123-
"ignorable_copyrights": [],
124-
"ignorable_holders": [],
125-
"ignorable_authors": [],
126-
"ignorable_urls": [],
127-
"ignorable_emails": [],
128-
"text": "Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is fur- nished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT- NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE DANIEL VEILLARD BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON- NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nExcept as contained in this notice, the name of Daniel Veillard shall not be used in advertising or otherwise to promote the sale, use or other deal- ings in this Software without prior written authorization from him.",
129-
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/x11-xconsortium-veillard.LICENSE",
130-
"licensedb_url": "https://scancode-licensedb.aboutcode.org/x11-xconsortium-veillard",
131-
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/x11-xconsortium-veillard.LICENSE"
132-
}
133-
],
134-
"license_rule_references": [
135-
{
136-
"license_expression": "unknown-license-reference",
137-
"identifier": "unknown-license-reference_108.RULE",
138-
"language": "en",
139-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/unknown-license-reference_108.RULE",
140-
"is_license_text": false,
141-
"is_license_notice": false,
142-
"is_license_reference": true,
143-
"is_license_tag": false,
144-
"is_license_intro": false,
145-
"is_continuous": false,
146-
"is_builtin": true,
147-
"is_from_license": false,
148-
"is_synthetic": false,
149-
"length": 9,
150-
"relevance": 100,
151-
"minimum_coverage": 80,
152-
"referenced_filenames": [
153-
"Copyright"
154-
],
155-
"notes": null,
156-
"ignorable_copyrights": [],
157-
"ignorable_holders": [],
158-
"ignorable_authors": [],
159-
"ignorable_urls": [],
160-
"ignorable_emails": [],
161-
"text": "Copy: See Copyright for the status of this software."
162-
},
163-
{
164-
"license_expression": "unknown-license-reference",
165-
"identifier": "unknown-license-reference_30.RULE",
166-
"language": "en",
167-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/unknown-license-reference_30.RULE",
168-
"is_license_text": false,
169-
"is_license_notice": false,
170-
"is_license_reference": true,
171-
"is_license_tag": false,
172-
"is_license_intro": false,
173-
"is_continuous": false,
174-
"is_builtin": true,
175-
"is_from_license": false,
176-
"is_synthetic": false,
177-
"length": 8,
178-
"relevance": 100,
179-
"minimum_coverage": 80,
180-
"referenced_filenames": [
181-
"Copyright"
182-
],
183-
"notes": null,
184-
"ignorable_copyrights": [],
185-
"ignorable_holders": [],
186-
"ignorable_authors": [],
187-
"ignorable_urls": [],
188-
"ignorable_emails": [],
189-
"text": "See Copyright for the status of this software."
190-
},
191-
{
192-
"license_expression": "x11-xconsortium-veillard",
193-
"identifier": "x11-xconsortium-veillard.LICENSE",
194-
"language": "en",
195-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/x11-xconsortium-veillard.LICENSE",
196-
"is_license_text": true,
197-
"is_license_notice": false,
198-
"is_license_reference": false,
199-
"is_license_tag": false,
200-
"is_license_intro": false,
201-
"is_continuous": false,
202-
"is_builtin": true,
203-
"is_from_license": true,
204-
"is_synthetic": false,
205-
"length": 199,
206-
"relevance": 100,
207-
"minimum_coverage": 0,
208-
"referenced_filenames": [],
209-
"notes": null,
210-
"ignorable_copyrights": [],
211-
"ignorable_holders": [],
212-
"ignorable_authors": [],
213-
"ignorable_urls": [],
214-
"ignorable_emails": [],
215-
"text": "Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is fur- nished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT- NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE DANIEL VEILLARD BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON- NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nExcept as contained in this notice, the name of Daniel Veillard shall not be used in advertising or otherwise to promote the sale, use or other deal- ings in this Software without prior written authorization from him."
216-
}
217-
],
21864
"files": [
21965
{
22066
"path": "Copyright",

0 commit comments

Comments
 (0)