Skip to content

Commit 2644d14

Browse files
Fix license detection bugs
Reference: #3613 Reported-by: @fviernau Frank Viernau Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 0ac082e commit 2644d14

File tree

8 files changed

+38
-5
lines changed

8 files changed

+38
-5
lines changed

src/licensedcode/data/rules/afpl-8.0_2.RULE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ is_license_notice: yes
44
relevance: 99
55
---
66

7-
distributed under the terms of the Aladdin Free Public License:
7+
distributed under the terms of the {{Aladdin Free Public License}}:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
license_expression: egenix-1.1.0
3+
is_license_notice: yes
4+
ignorable_urls:
5+
- https://www.egenix.com/products/eGenix.com-Public-License-1.1.0.pdf
6+
---
7+
8+
# This module is from and is
9+
# distributed under the terms of the {{eGenix.com Public License Agreement}}
10+
# https://www.egenix.com/products/eGenix.com-Public-License-1.1.0.pdf
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
license_expression: egenix-1.1.0
3+
is_license_notice: yes
4+
---
5+
6+
distributed under the terms of the {{eGenix.com Public License Agreement}}

src/licensedcode/data/rules/gpl-2.0_and_proprietary-license_3.RULE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
license_expression: gpl-2.0 AND proprietary-license
33
is_license_notice: yes
4+
minimum_coverage: 90
45
relevance: 100
56
referenced_filenames:
67
- LICENSE.txt
@@ -9,7 +10,7 @@ ignorable_urls:
910
- https://opensource.org/licenses/gpl-2.0.php
1011
---
1112

12-
# License: GPLv2, see https://opensource.org/licenses/gpl-2.0.php and
13+
# {{License: GPLv2}}, see https://opensource.org/licenses/gpl-2.0.php and
1314
# ccompanying license "LICENSE.txt". Redistribution + modification under this
1415
# license permitted.
1516

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
license_expression: mit
3+
is_license_notice: yes
4+
ignorable_urls:
5+
- https://opensource.org/licenses/MIT
6+
---
7+
8+
{{@license MIT}} <https://opensource.org/licenses/MIT>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
license_expression: mit
3+
is_license_notice: yes
4+
---
5+
6+
// A derivative work based on:
7+
// Which is licensed:
8+
// {{MIT License}}

src/licensedcode/data/rules/st-mcd-2.0_and_cc-by-sa-3.0_1.RULE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ ignorable_urls:
88
---
99

1010
* This code is derivative work based on the STemWin which is licensed under
11-
* MCD-ST Liberty SW License Agreement V2, available at:
11+
* {{MCD-ST Liberty SW License Agreement V2}}, available at:
1212
*
1313
* http://www.st.com/software_license_agreement_liberty_v2
1414
*
15-
* However this source code itself is licensed under (CC BY-SA 3.0), available at:
15+
* However this source code itself is {{licensed under (CC BY-SA 3.0)}}, available at:
1616
*
1717
* http://creativecommons.org/licenses/by-sa/3.0
1818
*

src/licensedcode/data/rules/unknown_11.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_reference: yes
3+
is_license_clue: yes
44
relevance: 100
55
---
66

0 commit comments

Comments
 (0)