diff --git a/src/licensedcode/data/rules/apache-2.0_1276.RULE b/src/licensedcode/data/rules/apache-2.0_1276.RULE new file mode 100644 index 00000000000..de0fefd2296 --- /dev/null +++ b/src/licensedcode/data/rules/apache-2.0_1276.RULE @@ -0,0 +1,10 @@ +--- +license_expression: apache-2.0 +is_license_tag: yes +ignorable_urls: + - https://www.apache.org/licenses/LICENSE-2.0.txt +--- + +name: Apache License, Version 2.0 +url: https://www.apache.org/licenses/LICENSE-2.0.txt +comments: A business-friendly OSS license \ No newline at end of file diff --git a/src/licensedcode/data/rules/apache-2.0_1277.RULE b/src/licensedcode/data/rules/apache-2.0_1277.RULE new file mode 100644 index 00000000000..efe114db13f --- /dev/null +++ b/src/licensedcode/data/rules/apache-2.0_1277.RULE @@ -0,0 +1,10 @@ +--- +license_expression: apache-2.0 +is_license_tag: yes +ignorable_urls: + - http://www.apache.org/licenses/LICENSE-2.0.txt +--- + +name: The Apache Software License, Version 2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.txt +comments: A business-friendly OSS license \ No newline at end of file diff --git a/src/licensedcode/data/rules/bsd-3-clause-no-nuclear-warranty_and_jj2000_2.RULE b/src/licensedcode/data/rules/bsd-3-clause-no-nuclear-warranty_and_jj2000_2.RULE new file mode 100644 index 00000000000..c13dc46aadc --- /dev/null +++ b/src/licensedcode/data/rules/bsd-3-clause-no-nuclear-warranty_and_jj2000_2.RULE @@ -0,0 +1,10 @@ +--- +license_expression: bsd-3-clause-no-nuclear-warranty AND jj2000 +is_license_tag: yes +minimum_coverage: 95 +--- + +name: {{JJ2000}} +url: LICENSE-JJ2000.txt +name: {{BSD 3-clause License w/nuclear disclaimer}} +url: LICENSE-Sun.txt \ No newline at end of file diff --git a/src/licensedcode/data/rules/bsd-new_1301.RULE b/src/licensedcode/data/rules/bsd-new_1301.RULE new file mode 100644 index 00000000000..3eda3e83405 --- /dev/null +++ b/src/licensedcode/data/rules/bsd-new_1301.RULE @@ -0,0 +1,9 @@ +--- +license_expression: bsd-new +is_license_tag: yes +ignorable_urls: + - http://www.jcraft.com/jzlib/LICENSE.txt +--- + +name: BSD +url: http://www.jcraft.com/jzlib/LICENSE.txt \ No newline at end of file diff --git a/src/licensedcode/data/rules/cpl-1.0_38.RULE b/src/licensedcode/data/rules/cpl-1.0_38.RULE new file mode 100644 index 00000000000..0c9ff20efa9 --- /dev/null +++ b/src/licensedcode/data/rules/cpl-1.0_38.RULE @@ -0,0 +1,10 @@ +--- +license_expression: cpl-1.0 +is_license_tag: yes +ignorable_urls: + - http://www.opensource.org/licenses/cpl1.0.txt +--- + +name: CPL +url: http://www.opensource.org/licenses/cpl1.0.txt +comments: Common Public License \ No newline at end of file diff --git a/src/licensedcode/data/rules/json_17.RULE b/src/licensedcode/data/rules/json_17.RULE new file mode 100644 index 00000000000..f2d63b95a9d --- /dev/null +++ b/src/licensedcode/data/rules/json_17.RULE @@ -0,0 +1,32 @@ +--- +license_expression: json +is_license_tag: yes +ignorable_copyrights: + - Copyright (c) 2002 JSON.org +ignorable_holders: + - JSON.org +ignorable_urls: + - http://json.org/license.html +--- + +name: The JSON License +url: http://json.org/license.html + +Copyright (c) 2002 JSON.org + +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 furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +The Software shall be used for Good, not Evil. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/src/licensedcode/data/rules/lgpl-2.1-plus_473.RULE b/src/licensedcode/data/rules/lgpl-2.1-plus_473.RULE new file mode 100644 index 00000000000..8c75c44a694 --- /dev/null +++ b/src/licensedcode/data/rules/lgpl-2.1-plus_473.RULE @@ -0,0 +1,9 @@ +--- +license_expression: lgpl-2.1-plus +is_license_tag: yes +ignorable_urls: + - http://www.gnu.org/licenses/lgpl.html +--- + +name: GNU Lesser Public License +url: http://www.gnu.org/licenses/lgpl.html \ No newline at end of file diff --git a/src/licensedcode/data/rules/lgpl-2.1_and_apache-2.0_1.RULE b/src/licensedcode/data/rules/lgpl-2.1_and_apache-2.0_1.RULE new file mode 100644 index 00000000000..556aec81aaa --- /dev/null +++ b/src/licensedcode/data/rules/lgpl-2.1_and_apache-2.0_1.RULE @@ -0,0 +1,12 @@ +--- +license_expression: lgpl-2.1 AND apache-2.0 +is_license_tag: yes +ignorable_urls: + - http://www.apache.org/licenses/LICENSE-2.0.txt + - http://www.gnu.org/licenses/licenses.html +--- + +name: LGPL, version 2.1 +url: http://www.gnu.org/licenses/licenses.html +name: Apache License v2.0 +url: http://www.apache.org/licenses/LICENSE-2.0.txt \ No newline at end of file diff --git a/src/licensedcode/data/rules/lgpl-2.1_and_apache-2.0_2.RULE b/src/licensedcode/data/rules/lgpl-2.1_and_apache-2.0_2.RULE new file mode 100644 index 00000000000..c436e614ad8 --- /dev/null +++ b/src/licensedcode/data/rules/lgpl-2.1_and_apache-2.0_2.RULE @@ -0,0 +1,12 @@ +--- +license_expression: lgpl-2.1 AND apache-2.0 +is_license_tag: yes +ignorable_urls: + - http://www.apache.org/licenses/ + - http://www.gnu.org/licenses/licenses.html +--- + +name: LGPL, version 2.1 +url: http://www.gnu.org/licenses/licenses.html +name: ASL, version 2 +url: http://www.apache.org/licenses/ \ No newline at end of file diff --git a/src/licensedcode/data/rules/unicode-icu-58_2.RULE b/src/licensedcode/data/rules/unicode-icu-58_2.RULE new file mode 100644 index 00000000000..db3574b315e --- /dev/null +++ b/src/licensedcode/data/rules/unicode-icu-58_2.RULE @@ -0,0 +1,9 @@ +--- +license_expression: unicode-icu-58 +is_license_tag: yes +ignorable_urls: + - http://source.icu-project.org/repos/icu/trunk/icu4j/main/shared/licenses/LICENSE +--- + +name: Unicode/ICU License +url: http://source.icu-project.org/repos/icu/trunk/icu4j/main/shared/licenses/LICENSE \ No newline at end of file diff --git a/tests/packagedcode/data/m2/bytebuddy/pom.xml.package.json b/tests/packagedcode/data/m2/bytebuddy/pom.xml.package.json index bcfd607d522..80f1522b32e 100644 --- a/tests/packagedcode/data/m2/bytebuddy/pom.xml.package.json +++ b/tests/packagedcode/data/m2/bytebuddy/pom.xml.package.json @@ -39,18 +39,18 @@ { "score": 100.0, "start_line": 1, - "end_line": 2, - "matched_length": 18, + "end_line": 3, + "matched_length": 23, "match_coverage": 100.0, - "matcher": "2-aho", + "matcher": "1-hash", "license_expression": "apache-2.0", - "rule_identifier": "apache-2.0_40.RULE", + "rule_identifier": "apache-2.0_1277.RULE", "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_40.RULE", - "matched_text": "- name: The Apache Software License, Version 2.0\n url: http://www.apache.org/licenses/LICENSE-2.0.txt" + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_1277.RULE", + "matched_text": "- name: The Apache Software License, Version 2.0\n url: http://www.apache.org/licenses/LICENSE-2.0.txt\n comments: A business-friendly OSS license" } ], - "identifier": "apache_2_0-bfa9e97a-62d3-0076-c881-8443e5e95192" + "identifier": "apache_2_0-a0cd95bb-90a3-a708-8b40-d282f4168353" } ], "other_license_expression": null,