Skip to content

Commit

Permalink
Improve dual BSD/Apache license detection #2214
Browse files Browse the repository at this point in the history
Reported-by: @lemoshi
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed Sep 7, 2020
1 parent 461523e commit c3bf8e5
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/apache-2.0.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: apache-2.0
is_license_notice: yes
minimum_coverage: 70
notes: Common in Apache notices
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/apache-2.0_409.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
license_expression: apache-2.0
is_license_text: yes
relevance: 100
minimum_coverage: 99.5
ignorable_urls:
- http://www.apache.org/licenses/
- http://www.apache.org/licenses/LICENSE-2.0
2 changes: 1 addition & 1 deletion src/licensedcode/data/rules/apache-2.0_62.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
license_expression: apache-2.0
is_license_text: yes
minimum_coverage: 95
minimum_coverage: 98.5
ignorable_urls:
- http://www.apache.org/licenses/
- http://www.apache.org/licenses/LICENSE-2.0
3 changes: 3 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_or_bsd-new_5.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
License
This work is dual-licensed under Apache 2.0 or BSD3.
You may select, at your option, one of the above-listed licenses.
3 changes: 3 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_or_bsd-new_5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
license_expression: apache-2.0 OR bsd-new
is_license_notice: yes
relevance: 100
2 changes: 2 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_or_bsd-new_6.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This work is dual-licensed under Apache 2.0 or BSD3.
You may select, at your option, one of the above-listed licenses.
3 changes: 3 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_or_bsd-new_6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
license_expression: apache-2.0 OR bsd-new
is_license_notice: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/apache-2.0_or_bsd-new_7.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This work is dual-licensed under Apache 2.0 or BSD3.
3 changes: 3 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_or_bsd-new_7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
license_expression: apache-2.0 OR bsd-new
is_license_notice: yes
relevance: 100

0 comments on commit c3bf8e5

Please sign in to comment.