From 9cb0f1b83948855a43b344f6a4ebf7de4f0c67fb Mon Sep 17 00:00:00 2001 From: TanayPawar Date: Fri, 31 Jan 2025 23:45:40 +0530 Subject: [PATCH] Fix false positive for Apache-2.0 OR BSD-3-Clause and add Apache-2.0 OR MIT rule --- .../data/rules/apache-2.0_or_bsd-new_8.RULE | 4 ++-- .../data/rules/apache-2.0_or_mit_1.RULE | 19 +++++-------------- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/src/licensedcode/data/rules/apache-2.0_or_bsd-new_8.RULE b/src/licensedcode/data/rules/apache-2.0_or_bsd-new_8.RULE index 9f2f526ed26..aeaede8c0fa 100644 --- a/src/licensedcode/data/rules/apache-2.0_or_bsd-new_8.RULE +++ b/src/licensedcode/data/rules/apache-2.0_or_bsd-new_8.RULE @@ -1,11 +1,11 @@ --- license_expression: apache-2.0 OR bsd-new is_license_notice: yes -relevance: 99 +relevance: 100 referenced_filenames: - LICENSE.APACHE - LICENSE.BSD --- This software is made available under the terms of *either* of the licenses -found in LICENSE.APACHE or LICENSE.BSD. \ No newline at end of file +found in {{LICENSE.APACHE}} or {{LICENSE.BSD}}. Both must be present for this rule to apply. \ No newline at end of file diff --git a/src/licensedcode/data/rules/apache-2.0_or_mit_1.RULE b/src/licensedcode/data/rules/apache-2.0_or_mit_1.RULE index 36cf39abdf5..db483f1e84e 100644 --- a/src/licensedcode/data/rules/apache-2.0_or_mit_1.RULE +++ b/src/licensedcode/data/rules/apache-2.0_or_mit_1.RULE @@ -1,20 +1,11 @@ --- license_expression: apache-2.0 OR mit is_license_notice: yes -minimum_coverage: 80 +relevance: 100 referenced_filenames: - - LICENSE-APACHE - - LICENSE-MIT -ignorable_urls: - - http://opensource.org/licenses/MIT - - http://www.apache.org/licenses/LICENSE-2.0 + - LICENSE.APACHE2 + - LICENSE.MIT --- -License - -Licensed under either of - - {{Apache License, Version 2.0 }}(LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) - {{MIT license }}(LICENSE-MIT or http://opensource.org/licenses/MIT) - -{{at your option.}} \ No newline at end of file +This software is made available under the terms of *either* of the licenses +found in LICENSE.APACHE2 or LICENSE.MIT.