Skip to content

Commit 4825830

Browse files
Regen test expectations after default license references
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent 9862f7a commit 4825830

File tree

188 files changed

+22029
-35914
lines changed

Some content is hidden

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

188 files changed

+22029
-35914
lines changed

tests/cluecode/data/plugin_email_url/emails-threshold.expected.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"license_references": [],
3+
"rule_references": [],
24
"files": [
35
{
46
"path": "3w-xxxx.c",

tests/cluecode/data/plugin_email_url/emails.expected.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"license_references": [],
3+
"rule_references": [],
24
"files": [
35
{
46
"path": "3w-xxxx.c",

tests/cluecode/data/plugin_email_url/urls-threshold.expected.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"license_references": [],
3+
"rule_references": [],
24
"files": [
35
{
46
"path": "3w-xxxx.c",

tests/cluecode/data/plugin_email_url/urls.expected.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"license_references": [],
3+
"rule_references": [],
24
"files": [
35
{
46
"path": "3w-xxxx.c",

tests/cluecode/data/plugin_filter_clues/filtered-expected.json

Lines changed: 39 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,48 @@
1717
"matcher": "3-seq",
1818
"license_expression": "apache-1.1",
1919
"rule_identifier": "apache-1.1_63.RULE",
20-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-1.1_63.RULE",
21-
"referenced_filenames": [],
22-
"is_license_text": true,
23-
"is_license_notice": false,
24-
"is_license_reference": false,
25-
"is_license_tag": false,
26-
"is_license_intro": false,
27-
"rule_length": 367,
28-
"rule_relevance": 100,
29-
"licenses": [
30-
{
31-
"key": "apache-1.1",
32-
"name": "Apache License 1.1",
33-
"short_name": "Apache 1.1",
34-
"category": "Permissive",
35-
"is_exception": false,
36-
"is_unknown": false,
37-
"owner": "Apache Software Foundation",
38-
"homepage_url": "http://www.apache.org/licenses/",
39-
"text_url": "http://apache.org/licenses/LICENSE-1.1",
40-
"reference_url": "https://scancode-licensedb.aboutcode.org/apache-1.1",
41-
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/apache-1.1.LICENSE",
42-
"spdx_license_key": "Apache-1.1",
43-
"spdx_url": "https://spdx.org/licenses/Apache-1.1"
44-
}
45-
]
20+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-1.1_63.RULE"
4621
}
4722
]
4823
}
4924
],
25+
"license_references": [
26+
{
27+
"key": "apache-1.1",
28+
"short_name": "Apache 1.1",
29+
"name": "Apache License 1.1",
30+
"category": "Permissive",
31+
"owner": "Apache Software Foundation",
32+
"homepage_url": "http://www.apache.org/licenses/",
33+
"notes": "Per SPDX.org, this license is OSI certified. This license has been\nsuperseded by Apache 2.0\n",
34+
"is_builtin": true,
35+
"spdx_license_key": "Apache-1.1",
36+
"osi_license_key": "Apache-1.1",
37+
"text_urls": [
38+
"http://apache.org/licenses/LICENSE-1.1"
39+
],
40+
"faq_url": "http://www.apache.org/foundation/license-faq.html",
41+
"other_urls": [
42+
"http://opensource.org/licenses/Apache-1.1",
43+
"https://opensource.org/licenses/Apache-1.1"
44+
],
45+
"text": "The Apache Software License, Version 1.1\n\nCopyright (c) 2000 The Apache Software Foundation. All rights\nreserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n1. Redistributions of source code must retain the above copyright\nnotice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\nnotice, this list of conditions and the following disclaimer in\nthe documentation and/or other materials provided with the\ndistribution.\n\n3. The end-user documentation included with the redistribution,\nif any, must include the following acknowledgment:\n\"This product includes software developed by the\nApache Software Foundation (http://www.apache.org/).\"\nAlternately, this acknowledgment may appear in the software itself,\nif and wherever such third-party acknowledgments normally appear.\n\n4. The names \"Apache\" and \"Apache Software Foundation\" must\nnot be used to endorse or promote products derived from this\nsoftware without prior written permission. For written\npermission, please contact apache@apache.org.\n\n5. Products derived from this software may not be called \"Apache\",\nnor may \"Apache\" appear in their name, without prior written\npermission of the Apache Software Foundation.\n\nTHIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED\nWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\nOF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR\nITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF\nUSE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\nOF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGE."
46+
}
47+
],
48+
"rule_references": [
49+
{
50+
"license_expression": "apache-1.1",
51+
"rule_identifier": "apache-1.1_63.RULE",
52+
"referenced_filenames": [],
53+
"is_license_text": true,
54+
"is_license_notice": false,
55+
"is_license_reference": false,
56+
"is_license_tag": false,
57+
"is_license_intro": false,
58+
"rule_length": 367,
59+
"rule_relevance": 100
60+
}
61+
],
5062
"files": [
5163
{
5264
"path": "LICENSE",
@@ -85,32 +97,7 @@
8597
"matcher": "3-seq",
8698
"license_expression": "apache-1.1",
8799
"rule_identifier": "apache-1.1_63.RULE",
88-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-1.1_63.RULE",
89-
"referenced_filenames": [],
90-
"is_license_text": true,
91-
"is_license_notice": false,
92-
"is_license_reference": false,
93-
"is_license_tag": false,
94-
"is_license_intro": false,
95-
"rule_length": 367,
96-
"rule_relevance": 100,
97-
"licenses": [
98-
{
99-
"key": "apache-1.1",
100-
"name": "Apache License 1.1",
101-
"short_name": "Apache 1.1",
102-
"category": "Permissive",
103-
"is_exception": false,
104-
"is_unknown": false,
105-
"owner": "Apache Software Foundation",
106-
"homepage_url": "http://www.apache.org/licenses/",
107-
"text_url": "http://apache.org/licenses/LICENSE-1.1",
108-
"reference_url": "https://scancode-licensedb.aboutcode.org/apache-1.1",
109-
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/apache-1.1.LICENSE",
110-
"spdx_license_key": "Apache-1.1",
111-
"spdx_url": "https://spdx.org/licenses/Apache-1.1"
112-
}
113-
]
100+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-1.1_63.RULE"
114101
}
115102
]
116103
}

tests/cluecode/data/plugin_filter_clues/filtered-expected2.json

Lines changed: 31 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,40 @@
1717
"matcher": "2-aho",
1818
"license_expression": "pygres-2.2",
1919
"rule_identifier": "pygres-2.2_2.RULE",
20-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/pygres-2.2_2.RULE",
21-
"referenced_filenames": [],
22-
"is_license_text": true,
23-
"is_license_notice": false,
24-
"is_license_reference": false,
25-
"is_license_tag": false,
26-
"is_license_intro": false,
27-
"rule_length": 145,
28-
"rule_relevance": 100,
29-
"licenses": [
30-
{
31-
"key": "pygres-2.2",
32-
"name": "PyGres License v2.2",
33-
"short_name": "PyGres License 2.2",
34-
"category": "Permissive",
35-
"is_exception": false,
36-
"is_unknown": false,
37-
"owner": "Unspecified",
38-
"homepage_url": null,
39-
"text_url": "http://shell.vex.net/viewvc.cgi/pygresql/trunk/module/pgmodule.c?view=markup&pathrev=431",
40-
"reference_url": "https://scancode-licensedb.aboutcode.org/pygres-2.2",
41-
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/pygres-2.2.LICENSE",
42-
"spdx_license_key": "LicenseRef-scancode-pygres-2.2",
43-
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/pygres-2.2.LICENSE"
44-
}
45-
]
20+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/pygres-2.2_2.RULE"
4621
}
4722
]
4823
}
4924
],
25+
"license_references": [
26+
{
27+
"key": "pygres-2.2",
28+
"short_name": "PyGres License 2.2",
29+
"name": "PyGres License v2.2",
30+
"category": "Permissive",
31+
"owner": "Unspecified",
32+
"is_builtin": true,
33+
"spdx_license_key": "LicenseRef-scancode-pygres-2.2",
34+
"text_urls": [
35+
"http://shell.vex.net/viewvc.cgi/pygresql/trunk/module/pgmodule.c?view=markup&pathrev=431"
36+
],
37+
"text": "PyGres, version 2.2 A Python interface for PostgreSQL database. Written by\nD'Arcy J.M. Cain, (darcy@druid.net). Based heavily on code written by\nPascal Andre, andre@chimay.via.ecp.fr. Copyright (c) 1995, Pascal Andre\n(andre@via.ecp.fr).\n\nPermission to use, copy, modify, and distribute this software and its\ndocumentation for any purpose, without fee, and without a written\nagreement is hereby granted, provided that the above copyright notice and\nthis paragraph and the following two paragraphs appear in all copies or in\nany new file that contains a substantial portion of this file.\n\nIN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,\nSPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,\nARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE\nAUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nTHE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED\nTO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN \"AS IS\" BASIS, AND THE\nAUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,\nENHANCEMENTS, OR MODIFICATIONS.\n\nFurther modifications copyright 1997, 1998, 1999 by D'Arcy J.M. Cain\n(darcy@druid.net) subject to the same terms and conditions as above."
38+
}
39+
],
40+
"rule_references": [
41+
{
42+
"license_expression": "pygres-2.2",
43+
"rule_identifier": "pygres-2.2_2.RULE",
44+
"referenced_filenames": [],
45+
"is_license_text": true,
46+
"is_license_notice": false,
47+
"is_license_reference": false,
48+
"is_license_tag": false,
49+
"is_license_intro": false,
50+
"rule_length": 145,
51+
"rule_relevance": 100
52+
}
53+
],
5054
"files": [
5155
{
5256
"path": "LICENSE2",
@@ -85,32 +89,7 @@
8589
"matcher": "2-aho",
8690
"license_expression": "pygres-2.2",
8791
"rule_identifier": "pygres-2.2_2.RULE",
88-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/pygres-2.2_2.RULE",
89-
"referenced_filenames": [],
90-
"is_license_text": true,
91-
"is_license_notice": false,
92-
"is_license_reference": false,
93-
"is_license_tag": false,
94-
"is_license_intro": false,
95-
"rule_length": 145,
96-
"rule_relevance": 100,
97-
"licenses": [
98-
{
99-
"key": "pygres-2.2",
100-
"name": "PyGres License v2.2",
101-
"short_name": "PyGres License 2.2",
102-
"category": "Permissive",
103-
"is_exception": false,
104-
"is_unknown": false,
105-
"owner": "Unspecified",
106-
"homepage_url": null,
107-
"text_url": "http://shell.vex.net/viewvc.cgi/pygresql/trunk/module/pgmodule.c?view=markup&pathrev=431",
108-
"reference_url": "https://scancode-licensedb.aboutcode.org/pygres-2.2",
109-
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/pygres-2.2.LICENSE",
110-
"spdx_license_key": "LicenseRef-scancode-pygres-2.2",
111-
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/pygres-2.2.LICENSE"
112-
}
113-
]
92+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/pygres-2.2_2.RULE"
11493
}
11594
]
11695
}

tests/cluecode/data/plugin_filter_clues/filtered-expected3.json

Lines changed: 32 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,41 @@
1717
"matcher": "1-hash",
1818
"license_expression": "pcre",
1919
"rule_identifier": "pcre.LICENSE",
20-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/pcre.LICENSE",
21-
"referenced_filenames": [],
22-
"is_license_text": true,
23-
"is_license_notice": false,
24-
"is_license_reference": false,
25-
"is_license_tag": false,
26-
"is_license_intro": false,
27-
"rule_length": 303,
28-
"rule_relevance": 100,
29-
"licenses": [
30-
{
31-
"key": "pcre",
32-
"name": "PCRE License",
33-
"short_name": "PCRE License",
34-
"category": "Permissive",
35-
"is_exception": false,
36-
"is_unknown": false,
37-
"owner": "University of Cambridge",
38-
"homepage_url": "http://www.pcre.org/licence.txt",
39-
"text_url": "http://www.pcre.org/licence.txt",
40-
"reference_url": "https://scancode-licensedb.aboutcode.org/pcre",
41-
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/pcre.LICENSE",
42-
"spdx_license_key": "LicenseRef-scancode-pcre",
43-
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/pcre.LICENSE"
44-
}
45-
]
20+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/pcre.LICENSE"
4621
}
4722
]
4823
}
4924
],
25+
"license_references": [
26+
{
27+
"key": "pcre",
28+
"short_name": "PCRE License",
29+
"name": "PCRE License",
30+
"category": "Permissive",
31+
"owner": "University of Cambridge",
32+
"homepage_url": "http://www.pcre.org/licence.txt",
33+
"is_builtin": true,
34+
"spdx_license_key": "LicenseRef-scancode-pcre",
35+
"text_urls": [
36+
"http://www.pcre.org/licence.txt"
37+
],
38+
"text": "PCRE LICENCE\n------------\n\nPCRE is a library of functions to support regular expressions whose\nsyntax and semantics are as close as possible to those of the Perl 5\nlanguage.\n\nWritten by: Philip Hazel <ph10@cam.ac.uk>\nUniversity of Cambridge Computing Service, Cambridge, England.\nPhone: +44 1223 334714.\nCopyright (c) 1997-2001 University of Cambridge\n\nPermission is granted to anyone to use this software for any purpose on\nany computer system, and to redistribute it freely, subject to the\nfollowing restrictions:\n\n1. This software is distributed in the hope that it will be useful, but\nWITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n2. The origin of this software must not be misrepresented, either by\nexplicit claim or by omission. In practice, this means that if you use\nPCRE in software which you distribute to others, commercially or\notherwise, you must put a sentence like this\n\"Regular expression support is provided by the PCRE library package,\nwhich is open source software, written by Philip Hazel, and copyright by\nthe University of Cambridge, England\"\n\nsomewhere reasonably visible in your documentation and in any relevant\nfiles or online help data or similar.\n\nA reference to the ftp site for the source, that is, to\nftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/\nshould also be given in the documentation.\n\n3. Altered versions must be plainly marked as such, and must not be\nmisrepresented as being the original software.\n\n4. If PCRE is embedded in any software that is released under the GNU\nGeneral Purpose Licence (GPL), or Lesser General Purpose Licence (LGPL),\nthen the terms of that licence shall supersede any condition above with\nwhich it is incompatible.\n\nThe documentation for PCRE, supplied in the \"doc\" directory, is\ndistributed under the same terms as the software itself.\n\nEnd PCRE LICENCE"
39+
}
40+
],
41+
"rule_references": [
42+
{
43+
"license_expression": "pcre",
44+
"rule_identifier": "pcre.LICENSE",
45+
"referenced_filenames": [],
46+
"is_license_text": true,
47+
"is_license_notice": false,
48+
"is_license_reference": false,
49+
"is_license_tag": false,
50+
"is_license_intro": false,
51+
"rule_length": 303,
52+
"rule_relevance": 100
53+
}
54+
],
5055
"files": [
5156
{
5257
"path": "LICENSE3",
@@ -85,32 +90,7 @@
8590
"matcher": "1-hash",
8691
"license_expression": "pcre",
8792
"rule_identifier": "pcre.LICENSE",
88-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/pcre.LICENSE",
89-
"referenced_filenames": [],
90-
"is_license_text": true,
91-
"is_license_notice": false,
92-
"is_license_reference": false,
93-
"is_license_tag": false,
94-
"is_license_intro": false,
95-
"rule_length": 303,
96-
"rule_relevance": 100,
97-
"licenses": [
98-
{
99-
"key": "pcre",
100-
"name": "PCRE License",
101-
"short_name": "PCRE License",
102-
"category": "Permissive",
103-
"is_exception": false,
104-
"is_unknown": false,
105-
"owner": "University of Cambridge",
106-
"homepage_url": "http://www.pcre.org/licence.txt",
107-
"text_url": "http://www.pcre.org/licence.txt",
108-
"reference_url": "https://scancode-licensedb.aboutcode.org/pcre",
109-
"scancode_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/pcre.LICENSE",
110-
"spdx_license_key": "LicenseRef-scancode-pcre",
111-
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/pcre.LICENSE"
112-
}
113-
]
93+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/pcre.LICENSE"
11494
}
11595
]
11696
}

tests/cluecode/data/plugin_ignore_copyrights/authors.expected.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"license_references": [],
3+
"rule_references": [],
24
"files": [
35
{
46
"path": "basic.tgz",

tests/cluecode/data/plugin_ignore_copyrights/holders.expected.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"license_references": [],
3+
"rule_references": [],
24
"files": [
35
{
46
"path": "basic.tgz",

0 commit comments

Comments
 (0)