Skip to content

Commit

Permalink
Add new and improved license detection rules
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Oct 6, 2023
1 parent 68b5173 commit 2facd79
Show file tree
Hide file tree
Showing 9 changed files with 492 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1322.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
license_expression: bsd-new
is_license_text: yes
---

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

* Neither the names of the copyright holders nor the names of the
University of New South Wales and the University of Waikato
and its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 6 additions & 0 deletions src/licensedcode/data/rules/false-positive_733.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
is_false_positive: yes
notes: not a license
---

License licensesMetadata
8 changes: 8 additions & 0 deletions src/licensedcode/data/rules/false-positive_734.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
is_false_positive: yes
notes: not a license
---

License;
licensesMetadata
other
6 changes: 6 additions & 0 deletions src/licensedcode/data/rules/false-positive_735.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
is_false_positive: yes
notes: not a license
---

License License licensesMetadata
13 changes: 13 additions & 0 deletions src/licensedcode/data/rules/mpl-2.0_133.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
license_expression: mpl-2.0
is_license_notice: yes
ignorable_urls:
- https://www.mozilla.org/en-US/MPL/2.0/
- https://www.mozilla.org/en-US/MPL/2.0/FAQ
---

eigen NOTICE
================================================================================
Eigen is licensed under Mozilla Public License Version 2.0 (MPL 2.0). A MPL 2.0
and FAQ's for MPL 2.0 can be found at: https://www.mozilla.org/en-US/MPL/2.0/
and https://www.mozilla.org/en-US/MPL/2.0/FAQ/.
11 changes: 11 additions & 0 deletions src/licensedcode/data/rules/mpl-2.0_134.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: mpl-2.0
is_license_notice: yes
ignorable_urls:
- https://www.mozilla.org/en-US/MPL/2.0/
- https://www.mozilla.org/en-US/MPL/2.0/FAQ
---

Eigen is licensed under Mozilla Public License Version 2.0 (MPL 2.0). A MPL 2.0
and FAQ's for MPL 2.0 can be found at: https://www.mozilla.org/en-US/MPL/2.0/
and https://www.mozilla.org/en-US/MPL/2.0/FAQ/.
11 changes: 11 additions & 0 deletions src/licensedcode/data/rules/mpl-2.0_135.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: mpl-2.0
is_license_notice: yes
ignorable_urls:
- https://www.mozilla.org/en-US/MPL/2.0/
- https://www.mozilla.org/en-US/MPL/2.0/FAQ
---

licensed under Mozilla Public License Version 2.0 (MPL 2.0). A MPL 2.0
and FAQ's for MPL 2.0 can be found at: https://www.mozilla.org/en-US/MPL/2.0/
and https://www.mozilla.org/en-US/MPL/2.0/FAQ/.
11 changes: 11 additions & 0 deletions src/licensedcode/data/rules/mpl-2.0_136.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: mpl-2.0
is_license_notice: yes
ignorable_urls:
- https://www.mozilla.org/en-US/MPL/2.0/
- https://www.mozilla.org/en-US/MPL/2.0/FAQ
---

is licensed under Mozilla Public License Version 2.0 (MPL 2.0). A MPL 2.0
and FAQ's for MPL 2.0 can be found at: https://www.mozilla.org/en-US/MPL/2.0/
and https://www.mozilla.org/en-US/MPL/2.0/FAQ/.
396 changes: 396 additions & 0 deletions src/licensedcode/data/rules/ms-visual-studio-2017_1.RULE

Large diffs are not rendered by default.

0 comments on commit 2facd79

Please sign in to comment.