Skip to content

Commit 1c4d6be

Browse files
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>
1 parent 1163957 commit 1c4d6be

File tree

40 files changed

+335
-69
lines changed

40 files changed

+335
-69
lines changed

etc/scripts/licenses/buildrules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class RuleData(object):
6161

6262
def __attrs_post_init__(self, *args, **kwargs):
6363
self.raw_data = rdat = "\n".join(self.data_lines).strip()
64-
self.text = "\n".join(self.text_lines).strip()
64+
self.text = "\n".join(self.text_lines).strip() + "\n"
6565

6666
# validate YAML syntax
6767
try:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
license_expression: apache-2.0
3+
is_license_tag: yes
4+
relevance: 100
5+
---
6+
7+
name: The Apache Software License, Version 2.0
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
license_expression: apache-2.0
3+
is_license_tag: yes
4+
relevance: 100
5+
ignorable_urls:
6+
- http://www.apache.org/license/LICENSE-2.0.txt
7+
---
8+
9+
url: http://www.apache.org/license/LICENSE-2.0.txt
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
license_expression: apache-2.0
3+
is_license_reference: yes
4+
relevance: 100
5+
ignorable_urls:
6+
- http://www.apache.org/license/LICENSE-2.0.txt
7+
---
8+
9+
http://www.apache.org/license/LICENSE-2.0.txt
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
license_expression: authorizenet-sdk
3+
is_license_tag: yes
4+
ignorable_urls:
5+
- https://github.com/AuthorizeNet/sdk-java/blob/master/LICENSE.txt
6+
---
7+
8+
name: SDK License Agreement
9+
url: {{https://github.com/AuthorizeNet/sdk-java/blob/master/LICENSE.txt}}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
license_expression: bsd-new
3+
is_license_tag: yes
4+
ignorable_urls:
5+
- http://www.linfo.org/bsdlicense.html
6+
---
7+
8+
name: BSD
9+
url: http://www.linfo.org/bsdlicense.html
10+
comments: Free for open or commercial use, with credit line
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
license_expression: epl-2.0
3+
is_license_tag: yes
4+
ignorable_urls:
5+
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
6+
---
7+
8+
- name: Eclipse Public License v. 2.0
9+
url: https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
license_expression: epl-2.0
3+
is_license_tag: yes
4+
ignorable_urls:
5+
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
6+
---
7+
8+
license
9+
<name>Eclipse Public License v. 2.0
10+
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
license_expression: epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0
3+
is_license_tag: yes
4+
ignorable_urls:
5+
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
6+
- https://www.gnu.org/software/classpath/license.html
7+
---
8+
9+
<name>Eclipse Public License v. 2.0</name>
10+
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
11+
<name>GNU General Public License, version 2 with the GNU Classpath Exception</name>
12+
<url>https://www.gnu.org/software/classpath/license.html</url>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
license_expression: epl-2.0 OR gpl-2.0 WITH classpath-exception-2.0
3+
is_license_tag: yes
4+
ignorable_urls:
5+
- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
6+
- https://www.gnu.org/software/classpath/license.html
7+
---
8+
9+
license
10+
<name>Eclipse Public License v. 2.0</name>
11+
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
12+
<name>GNU General Public License, version 2 with the GNU Classpath Exception</name>
13+
<url>https://www.gnu.org/software/classpath/license.html</url>

0 commit comments

Comments
 (0)