Skip to content

Commit b78f8fd

Browse files
committed
Add new and improved license rules and tests
This is fixing failing tests following new rules added for #1418 and #1419 Reported-by: John M. Horan <jmhoran@nexb.com> Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 2bb2d12 commit b78f8fd

76 files changed

Lines changed: 615 additions & 30 deletions

Some content is hidden

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

src/licensedcode/data/licenses/jython.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ owner: Python Software Foundation (PSF)
66
homepage_url: http://www.jython.org/license.txt
77
text_urls:
88
- http://www.jython.org/license.txt
9+
notes: this is a complex composite of multiple licenses
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The command line interpreter is covered by the Apache Software
2+
License. See the org/apache/LICENSE file for details.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
license_expression: apache-2.0
2+
is_license_notice: yes
3+
referenced_filenames:
4+
- org/apache/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
license_expression: apache-2.0
22
is_license_notice: yes
33
notes: Apache license variant
4+
minimum_coverage: 20
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Redistribution and use in source and binary forms, with or without
2+
modification, are permitted provided that the following conditions
3+
are met:
4+
5+
- Redistributions of source code must retain the above copyright
6+
notice, this list of conditions and the following disclaimer.
7+
8+
- Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in
10+
the documentation and/or other materials provided with the distribution.
11+
12+
- Neither the name of the Developers nor the names of
13+
its contributors may be used to endorse or promote products
14+
derived from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17+
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
20+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
license_expression: bsd-new
2+
is_license_text: yes

src/licensedcode/data/rules/jython_1.RULE renamed to src/licensedcode/data/rules/bsd-new_jython_1.RULE

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
Jython 2.0, 2.1 License
22
--------------------------------------------
33

4-
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Jython Developers
5-
All rights reserved.
64

75
Redistribution and use in source and binary forms, with or without
86
modification, are permitted provided that the following conditions
@@ -15,7 +13,7 @@ are met:
1513
notice, this list of conditions and the following disclaimer in
1614
the documentation and/or other materials provided with the distribution.
1715

18-
- Neither the name of the Jython Developers nor the names of
16+
- Neither the name of the Developers nor the names of
1917
its contributors may be used to endorse or promote products
2018
derived from this software without specific prior written permission.
2119

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
license_expression: bsd-new
2+
is_license_text: yes
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Jython 2.0, 2.1 License
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
license_expression: bsd-new
2+
is_license_reference: yes
3+
relevance: 90

0 commit comments

Comments
 (0)