Skip to content

Commit

Permalink
Add new license detection rules #3256
Browse files Browse the repository at this point in the history
Add new rules to improve detection accuracy in phpwiki.

Reference: #3256
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Apr 24, 2023
1 parent 534a1bf commit 3653b26
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/licensedcode/data/rules/cc-by-2.0_24.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: cc-by-2.0
is_license_reference: yes
relevance: 100
minimum_coverage: 100
ignorable_urls:
- https://creativecommons.org/licenses/by/2.0/
---

Creative Commons License 2.0
https://creativecommons.org/licenses/by/2.0/
8 changes: 8 additions & 0 deletions src/licensedcode/data/rules/cc-by-2.0_28.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
license_expression: cc-by-2.0
is_license_reference: yes
relevance: 80
minimum_coverage: 100
---

Creative Commons License 2.0
6 changes: 6 additions & 0 deletions src/licensedcode/data/rules/false-positive_405.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
is_false_positive: yes
notes: Some license suggestion at https://sourceforge.net/p/phpwiki/code/11015/tree/trunk/configurator.php#l1388
---

optional('COPYRIGHTPAGE_URL', "https://www.gnu.org/copyleft/gpl.html#SEC1
9 changes: 9 additions & 0 deletions src/licensedcode/data/rules/false-positive_408.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
is_false_positive: yes
notes: Some license suggestion at https://sourceforge.net/p/phpwiki/code/11015/tree/trunk/configurator.php#l1392
---

COPYRIGHTPAGE_TITLE = \"GNU Free Documentation License\"
COPYRIGHTPAGE_URL = \"https://www.gnu.org/copyleft/fdl.html\"
COPYRIGHTPAGE_TITLE = \"Creative Commons License 2.0\"
COPYRIGHTPAGE_URL = \"https://creativecommons.org/licenses/by/2.0/

0 comments on commit 3653b26

Please sign in to comment.