-
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new license detection rules (#3575)
* Add new license detection rules Also add trailing LF to license rule texts Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com> Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com> Co-authored-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
- Loading branch information
1 parent
1163957
commit 1c4d6be
Showing
40 changed files
with
335 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
license_expression: apache-2.0 | ||
is_license_tag: yes | ||
relevance: 100 | ||
--- | ||
|
||
name: The Apache Software License, Version 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
license_expression: apache-2.0 | ||
is_license_tag: yes | ||
relevance: 100 | ||
ignorable_urls: | ||
- http://www.apache.org/license/LICENSE-2.0.txt | ||
--- | ||
|
||
url: http://www.apache.org/license/LICENSE-2.0.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
license_expression: apache-2.0 | ||
is_license_reference: yes | ||
relevance: 100 | ||
ignorable_urls: | ||
- http://www.apache.org/license/LICENSE-2.0.txt | ||
--- | ||
|
||
http://www.apache.org/license/LICENSE-2.0.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
license_expression: authorizenet-sdk | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- https://github.com/AuthorizeNet/sdk-java/blob/master/LICENSE.txt | ||
--- | ||
|
||
name: SDK License Agreement | ||
url: {{https://github.com/AuthorizeNet/sdk-java/blob/master/LICENSE.txt}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
license_expression: bsd-new | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- http://www.linfo.org/bsdlicense.html | ||
--- | ||
|
||
name: BSD | ||
url: http://www.linfo.org/bsdlicense.html | ||
comments: Free for open or commercial use, with credit line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
license_expression: epl-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt | ||
--- | ||
|
||
- name: Eclipse Public License v. 2.0 | ||
url: https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
license_expression: epl-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt | ||
--- | ||
|
||
license | ||
<name>Eclipse Public License v. 2.0 | ||
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt |
12 changes: 12 additions & 0 deletions
12
src/licensedcode/data/rules/epl-2.0_or_gpl-2.0_with_classpath-exception-2.0_10.RULE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
license_expression: epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt | ||
- https://www.gnu.org/software/classpath/license.html | ||
--- | ||
|
||
<name>Eclipse Public License v. 2.0</name> | ||
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url> | ||
<name>GNU General Public License, version 2 with the GNU Classpath Exception</name> | ||
<url>https://www.gnu.org/software/classpath/license.html</url> |
13 changes: 13 additions & 0 deletions
13
src/licensedcode/data/rules/epl-2.0_or_gpl-2.0_with_classpath-exception-2.0_11.RULE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
license_expression: epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt | ||
- https://www.gnu.org/software/classpath/license.html | ||
--- | ||
|
||
license | ||
<name>Eclipse Public License v. 2.0</name> | ||
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url> | ||
<name>GNU General Public License, version 2 with the GNU Classpath Exception</name> | ||
<url>https://www.gnu.org/software/classpath/license.html</url> |
13 changes: 13 additions & 0 deletions
13
src/licensedcode/data/rules/epl-2.0_or_gpl-2.0_with_classpath-exception-2.0_12.RULE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
license_expression: epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt | ||
- https://www.gnu.org/software/classpath/license.html | ||
--- | ||
|
||
license | ||
<name>Eclipse Public License v. 2.0 | ||
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt | ||
<name>GNU General Public License, version 2 with the GNU Classpath Exception | ||
<url>https://www.gnu.org/software/classpath/license.html |
9 changes: 9 additions & 0 deletions
9
src/licensedcode/data/rules/gpl-2.0_with_classpath-exception-2.0_61.RULE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
license_expression: gpl-2.0 WITH classpath-exception-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- https://www.gnu.org/software/classpath/license.html | ||
--- | ||
|
||
- name: GNU General Public License, version 2 with the GNU Classpath Exception | ||
url: https://www.gnu.org/software/classpath/license.html |
10 changes: 10 additions & 0 deletions
10
src/licensedcode/data/rules/gpl-2.0_with_classpath-exception-2.0_62.RULE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
license_expression: gpl-2.0 WITH classpath-exception-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- https://www.gnu.org/software/classpath/license.html | ||
--- | ||
|
||
license | ||
<name>GNU General Public License, version 2 with the GNU Classpath Exception | ||
<url>https://www.gnu.org/software/classpath/license.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
license_expression: lgpl-3.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- http://www.gnu.org/licenses/lgpl.html | ||
--- | ||
|
||
<license> | ||
<name>GNU General Lesser Public License (LGPL) version 3.0</name> | ||
<url>http://www.gnu.org/licenses/lgpl.html</url> | ||
<distribution>repo</distribution> | ||
</license> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
license_expression: lgpl-3.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- http://www.gnu.org/licenses/lgpl.html | ||
--- | ||
|
||
- name: GNU General Lesser Public License (LGPL) version 3.0 | ||
url: http://www.gnu.org/licenses/lgpl.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
license_expression: lgpl-3.0 OR mpl-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- http://www.gnu.org/licenses/lgpl.html | ||
- http://www.mozilla.org/MPL/2.0/ | ||
--- | ||
|
||
license | ||
- name: GNU General Lesser Public License (LGPL) version 3.0 | ||
url: http://www.gnu.org/licenses/lgpl.html | ||
- name: Mozilla Public License Version 2.0 | ||
url: http://www.mozilla.org/MPL/2.0/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
license_expression: lgpl-3.0 OR mpl-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- http://www.gnu.org/licenses/lgpl.html | ||
- http://www.mozilla.org/MPL/2.0/ | ||
--- | ||
|
||
license | ||
- name: GNU General Lesser Public License (LGPL) version 3.0 | ||
url: http://www.gnu.org/licenses/lgpl.html | ||
- name: Mozilla Public License Version 2.0 | ||
url: http://www.mozilla.org/MPL/2.0/ | ||
license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
license_expression: lgpl-3.0 OR mpl-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- http://www.gnu.org/licenses/lgpl.html | ||
- http://www.mozilla.org/MPL/2.0/ | ||
--- | ||
|
||
licenses | ||
license | ||
- name: GNU General Lesser Public License (LGPL) version 3.0 | ||
url: http://www.gnu.org/licenses/lgpl.html | ||
- name: Mozilla Public License Version 2.0 | ||
url: http://www.mozilla.org/MPL/2.0/ | ||
license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
license_expression: lgpl-3.0 OR mpl-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- http://www.gnu.org/licenses/lgpl.html | ||
- http://www.mozilla.org/MPL/2.0/ | ||
--- | ||
|
||
<license> | ||
<name>GNU General Lesser Public License (LGPL) version 3.0</name> | ||
<url>http://www.gnu.org/licenses/lgpl.html</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
<license> | ||
<name>Mozilla Public License Version 2.0</name> | ||
<url>http://www.mozilla.org/MPL/2.0/</url> | ||
<distribution>repo</distribution> | ||
</license> |
8 changes: 8 additions & 0 deletions
8
src/licensedcode/data/rules/license-clue_authorizenet-sdk_1.RULE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
license_expression: authorizenet-sdk | ||
is_license_clue: yes | ||
is_continuous: yes | ||
relevance: 70 | ||
--- | ||
|
||
{{AuthorizeNet sdk license}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
license_expression: mpl-2.0 | ||
is_license_tag: yes | ||
ignorable_urls: | ||
- http://www.mozilla.org/MPL/2.0/ | ||
--- | ||
|
||
<license> | ||
<name>Mozilla Public License Version 2.0</name> | ||
<url>http://www.mozilla.org/MPL/2.0/</url> | ||
<distribution>repo</distribution> | ||
</license> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
license_expression: mpl-2.0 | ||
is_license_tag: yes | ||
relevance: 100 | ||
ignorable_urls: | ||
- http://www.mozilla.org/MPL/2.0/ | ||
--- | ||
|
||
- name: Mozilla Public License Version 2.0 | ||
url: http://www.mozilla.org/MPL/2.0/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
license_expression: other-permissive | ||
is_license_notice: yes | ||
minimum_coverage: 95 | ||
notes: Seen in openpdf See also https://web.archive.org/web/20060113033212/http://www.javaworld.com/javaworld/javatips/jw-javatip128.html | ||
ignorable_urls: | ||
- http://www.javaworld.com/javaworld/javatips/jw-javatip128.html | ||
--- | ||
|
||
SimpleXMLParser: | ||
The original version of this class was published in a JavaWorld article by Steven Brandt: | ||
http://www.javaworld.com/javaworld/javatips/jw-javatip128.html | ||
Jennifer Orr (JavaWorld) wrote: "You have permission to use the code appearing in | ||
Steven Brandt's JavaWorld article, 'Java Tip 128: Create a quick-and-dirty XML parser.' | ||
We ask that you reference the author as the creator and JavaWorld as the original publisher | ||
of the code." Steven Brandt also agreed with the use of this class. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
license_expression: other-permissive | ||
is_license_text: yes | ||
notes: Similar to hpnd-sell-variant-mit-disclaimer and seen in https://gitlab.freedesktop.org/xorg/xserver/-/blob/141e7dd8a373eafe28fb4f6433671979fb4c59a7/COPYING#L1781 | ||
--- | ||
|
||
Permission to use, copy, modify, distribute, and sell this software and its | ||
documentation for any purpose is hereby granted without fee, provided that | ||
this permission notice appear in supporting documentation. This permission | ||
notice shall be included in all copies or substantial portions of the | ||
Software. | ||
|
||
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 | ||
AUTHOR 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. |
1 change: 1 addition & 0 deletions
1
tests/licensedcode/data/datadriven/lic4/sun-bsd-no-nuclear_and_x11-tiff_and_unicode.txt.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.