Skip to content

Commit 9c90afe

Browse files
Add new and updated license detection rules
* New rule additions * Updating rules as intros and clues Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent d8b0dbe commit 9c90afe

12 files changed

+62
-4
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
license_expression: cddl-1.0
3+
is_license_tag: yes
4+
ignorable_urls:
5+
- https://opensource.org/licenses/CDDL-1.0
6+
---
7+
8+
<a href="https://opensource.org/licenses/CDDL-1.0">Common Development and Distribution License 1.0</a>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
license_expression: cpl-1.0
3+
is_license_reference: yes
4+
relevance: 100
5+
ignorable_urls:
6+
- http://opensource.org/licenses/cpl1.0.php
7+
---
8+
9+
<a href="http://opensource.org/licenses/cpl1.0.php">Common Public License 1.0</a>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in liferay-portal
4+
---
5+
6+
<!ATTLIST license
7+
osi-approved %boolean; #REQUIRED
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in liferay-portal
4+
---
5+
6+
sb.append(" <license osi-approved=\"");
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in liferay-portal
4+
---
5+
6+
sb.append(license.isOsiApproved());
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in liferay-portal
4+
---
5+
6+
Language.get(
7+
'you-are-about-to-report-a-violation-of-our-x.-all-reports-are-strictly-confidential'
8+
),
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in liferay-portal
4+
---
5+
6+
private License _license;
7+
private String _title;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in liferay-portal
4+
---
5+
6+
private static final String _PATH_PORTAL_LICENSE = "/portal/license";
7+
private static final String _PATH_PORTAL_LOGIN = "/portal/login";

src/licensedcode/data/rules/free-unknown_96.RULE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
license_expression: free-unknown
3-
is_license_reference: yes
3+
is_license_intro: yes
44
relevance: 100
55
ignorable_urls:
66
- http://opensource.org/licenses/

src/licensedcode/data/rules/freeware_bare_word_only.RULE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
license_expression: unknown-license-reference
3-
is_license_intro: yes
3+
is_license_clue: yes
44
relevance: 100
55
---
66

0 commit comments

Comments
 (0)