From f5d002d70b041872d5eb0b43afd2e6eda6257504 Mon Sep 17 00:00:00 2001 From: adii21-Ux Date: Wed, 2 Feb 2022 18:44:49 +0530 Subject: [PATCH 1/3] Added new copyright rule Signed-off-by: adii21-Ux --- src/cluecode/copyrights.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cluecode/copyrights.py b/src/cluecode/copyrights.py index f5ab1c72681..e85aeb30ba8 100644 --- a/src/cluecode/copyrights.py +++ b/src/cluecode/copyrights.py @@ -2562,6 +2562,9 @@ def build_detection_from_node( #holder is Tim Hudson (tjh@mincom.oz.au). COPYRIGHT: { } #83001 + # Copyright lowRISC contributors. + COPYRIGHT: { } + ####################################### # Authors ####################################### From 0c400feb8a3c1579ca1036e7e09af561d7ee6b4f Mon Sep 17 00:00:00 2001 From: adii21-Ux Date: Wed, 2 Feb 2022 18:55:26 +0530 Subject: [PATCH 2/3] Added new rule for apache-2.0 license Signed-off-by: adii21-Ux --- src/licensedcode/data/rules/apache-2.0_1076.RULE | 1 + src/licensedcode/data/rules/apache-2.0_1076.yml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 src/licensedcode/data/rules/apache-2.0_1076.RULE create mode 100644 src/licensedcode/data/rules/apache-2.0_1076.yml diff --git a/src/licensedcode/data/rules/apache-2.0_1076.RULE b/src/licensedcode/data/rules/apache-2.0_1076.RULE new file mode 100644 index 00000000000..412de1e5b4e --- /dev/null +++ b/src/licensedcode/data/rules/apache-2.0_1076.RULE @@ -0,0 +1 @@ +Licensed under the Apache License, Version 2.0, see LICENSE for details \ No newline at end of file diff --git a/src/licensedcode/data/rules/apache-2.0_1076.yml b/src/licensedcode/data/rules/apache-2.0_1076.yml new file mode 100644 index 00000000000..19701d49333 --- /dev/null +++ b/src/licensedcode/data/rules/apache-2.0_1076.yml @@ -0,0 +1,5 @@ +license_expression: apache-2.0 +relevance: 100 +is_license_notice: yes +referenced_filenames: + - LICENSE \ No newline at end of file From ff318bd38eaa906618a5dec46c4ef59bc1f7be8d Mon Sep 17 00:00:00 2001 From: adii21-Ux Date: Thu, 3 Feb 2022 17:53:21 +0530 Subject: [PATCH 3/3] Added test for new copyright rule Signed-off-by: adii21-Ux --- tests/cluecode/data/copyrights/toolchain.txt | 1 + tests/cluecode/data/copyrights/toolchain.txt.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/cluecode/data/copyrights/toolchain.txt create mode 100644 tests/cluecode/data/copyrights/toolchain.txt.yml diff --git a/tests/cluecode/data/copyrights/toolchain.txt b/tests/cluecode/data/copyrights/toolchain.txt new file mode 100644 index 00000000000..1b583c905bc --- /dev/null +++ b/tests/cluecode/data/copyrights/toolchain.txt @@ -0,0 +1 @@ +Copyright lowRISC contributors. \ No newline at end of file diff --git a/tests/cluecode/data/copyrights/toolchain.txt.yml b/tests/cluecode/data/copyrights/toolchain.txt.yml new file mode 100644 index 00000000000..de917d25e79 --- /dev/null +++ b/tests/cluecode/data/copyrights/toolchain.txt.yml @@ -0,0 +1,11 @@ +what: + - copyrights + - holders + - holders_summary +copyrights: + - Copyright lowRISC contributors +holders: + - lowRISC contributors +holders_summary: + - value: lowRISC contributors + count: 1