Skip to content

Commit

Permalink
Add new license detection rules
Browse files Browse the repository at this point in the history
These solve the following license detection bugs:

* #3361
* #3360
* #3358
* #3355

Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
  • Loading branch information
AyanSinhaMahapatra committed Apr 26, 2023
1 parent 92299a1 commit ccdc40b
Show file tree
Hide file tree
Showing 9 changed files with 118 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_1164.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
license_expression: apache-2.0
is_license_notice: yes
ignorable_urls:
- https://www.apache.org/licenses/LICENSE-2.0
---

* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
27 changes: 27 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_1165.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
license_expression: apache-2.0
is_license_notice: yes
ignorable_copyrights:
- copyright owlocationNameEntitieship. The ASF
ignorable_holders:
- owlocationNameEntitieship. The ASF
ignorable_urls:
- http://www.apache.org/licenses/LICENSE-2.0
---

/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright owlocationNameEntitieship.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
21 changes: 21 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_1166.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
license_expression: apache-2.0
is_license_notice: yes
ignorable_urls:
- http://aws.amazon.com/apache2.0
---

* Please see LICENSE.txt
* for applicable license terms and NOTICE.txt for applicable notices.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* {{http://aws.amazon.com/apache2.0}}
*
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and
* limitations under the License.
*/
11 changes: 11 additions & 0 deletions src/licensedcode/data/rules/cc-pd_24.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: cc-pd
is_license_reference: yes
ignorable_authors:
- Robert Harder
ignorable_urls:
- https://creativecommons.org/licenses/publicdomain
---

Written by Robert Harder and released to the public domain, as explained at
* https://creativecommons.org/licenses/publicdomain
8 changes: 8 additions & 0 deletions src/licensedcode/data/rules/cc-pd_28.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
license_expression: cc-pd
is_license_reference: yes
relevance: 80
minimum_coverage: 100
---

Robert Harder's Public Domain
10 changes: 10 additions & 0 deletions src/licensedcode/data/rules/cc0-1.0_195.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
license_expression: cc0-1.0
is_license_reference: yes
relevance: 100
ignorable_urls:
- https://creativecommons.org/publicdomain/zero/1.0
---

* released to the public domain, as explained at
* {{https://creativecommons.org/publicdomain/zero/1.0/}}
9 changes: 9 additions & 0 deletions src/licensedcode/data/rules/cddl-1.0_or_lgpl-2.1-plus_5.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
license_expression: cddl-1.0 OR lgpl-2.1-plus
is_license_notice: yes
relevance: 100
minimum_coverage: 100
notes: found in tika-parsers-1.28.5-sources.jar and references JHightlight library (https://github.com/codelibs/jhighlight)
---

under {{CDDL/LGPL dual license}}
6 changes: 6 additions & 0 deletions src/licensedcode/data/rules/false-positive_456.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
is_false_positive: yes
notes: Found inpdfbox-2.0.24-sources.jar
---

throw new UnsupportedOperationException(“This instance may not be modified.“)
8 changes: 8 additions & 0 deletions src/licensedcode/data/rules/lgpl-2.1_430.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
license_expression: lgpl-2.1
is_license_notice: yes
ignorable_urls:
- http://www.gnu.org/licenses/lgpl-2.1.html
---

License: GNU Lesser General Public License, Version 2.1 (http://www.gnu.org/licenses/lgpl-2.1.html)

0 comments on commit ccdc40b

Please sign in to comment.