From 5ac7c1dea4a8234a7a9abb2fe7ed53c866610dfa Mon Sep 17 00:00:00 2001 From: dikshaa2909 Date: Mon, 2 Feb 2026 18:59:18 +0530 Subject: [PATCH 1/6] Add MIT license rule with attribution and no-endorsement clause Signed-off-by: dikshaa2909 --- .../rules/mit_attribution_no_endorsement.RULE | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE diff --git a/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE new file mode 100644 index 0000000000..1de18ce17a --- /dev/null +++ b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE @@ -0,0 +1,40 @@ +--- +license_expression: mit AND no-endorsement +is_license_text: yes +relevance: 100 + +required_phrases: + - Permission is hereby granted, free of charge + - The above copyright notice and this permission notice + - THE SOFTWARE IS PROVIDED "AS IS" +--- + +Copyright 2025 Sinusoidal Systems AB + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +1. The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + +2. Redistributions of the Software in source or binary form must include an + attribution notice stating that the Software was originally developed by + Sinusoidal Systems AB, and may not in any way suggest that Sinusoidal Systems AB + endorses or is affiliated with the redistribution or derivative work without + prior written permission. + +3. Neither the name, trademarks, nor service marks of Sinusoidal Systems AB may be + used to endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file From efcf8a8a4a161edceb8f68dfbcf0e06c3a3e31f1 Mon Sep 17 00:00:00 2001 From: dikshaa2909 Date: Tue, 3 Feb 2026 22:34:43 +0530 Subject: [PATCH 2/6] Fix MIT attribution rule Signed-off-by: dikshaa2909 --- .../rules/mit_attribution_no_endorsement.RULE | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE index 1de18ce17a..a07df11287 100644 --- a/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE +++ b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE @@ -1,24 +1,24 @@ --- -license_expression: mit AND no-endorsement +license_expression: mit is_license_text: yes relevance: 100 required_phrases: - - Permission is hereby granted, free of charge - - The above copyright notice and this permission notice - - THE SOFTWARE IS PROVIDED "AS IS" + - "{{ Permission is hereby granted, free of charge }}" + - "{{ The above copyright notice and this permission notice }}" + - "{{ THE SOFTWARE IS PROVIDED \"AS IS\" }}" --- Copyright 2025 Sinusoidal Systems AB -Permission is hereby granted, free of charge, to any person obtaining a copy of +{{Permission is hereby granted, free of charge}}, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -1. The above copyright notice and this permission notice shall be included in +1. {{The above copyright notice and this permission notice}} shall be included in all copies or substantial portions of the Software. 2. Redistributions of the Software in source or binary form must include an @@ -31,10 +31,10 @@ so, subject to the following conditions: used to endorse or promote products derived from this Software without specific prior written permission. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +{{THE SOFTWARE IS PROVIDED "AS IS"}}, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. From 3152d25938abf4903224dae46a913f9bdaad6818 Mon Sep 17 00:00:00 2001 From: dikshaa2909 Date: Tue, 3 Feb 2026 23:02:02 +0530 Subject: [PATCH 3/6] Fix rule syntax for MIT attribution no-endorsement license Signed-off-by: dikshaa2909 --- .../data/rules/mit_attribution_no_endorsement.RULE | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE index a07df11287..9e2e35b0a2 100644 --- a/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE +++ b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE @@ -2,11 +2,6 @@ license_expression: mit is_license_text: yes relevance: 100 - -required_phrases: - - "{{ Permission is hereby granted, free of charge }}" - - "{{ The above copyright notice and this permission notice }}" - - "{{ THE SOFTWARE IS PROVIDED \"AS IS\" }}" --- Copyright 2025 Sinusoidal Systems AB From 5ada3762a8410f8da7cc81ebec9d2ca80a4278d4 Mon Sep 17 00:00:00 2001 From: dikshaa2909 Date: Tue, 3 Feb 2026 23:41:41 +0530 Subject: [PATCH 4/6] Make MIT no-endorsement rule generic Signed-off-by: dikshaa2909 --- .../data/rules/mit_attribution_no_endorsement.RULE | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE index 9e2e35b0a2..c5591f2d92 100644 --- a/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE +++ b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE @@ -1,10 +1,10 @@ --- -license_expression: mit +license_expression: mit AND no-endorsement is_license_text: yes relevance: 100 --- -Copyright 2025 Sinusoidal Systems AB +Copyright {{year}} {{company}} {{Permission is hereby granted, free of charge}}, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in @@ -18,11 +18,11 @@ so, subject to the following conditions: 2. Redistributions of the Software in source or binary form must include an attribution notice stating that the Software was originally developed by - Sinusoidal Systems AB, and may not in any way suggest that Sinusoidal Systems AB + {{company}}, and may not in any way suggest that {{company}} endorses or is affiliated with the redistribution or derivative work without prior written permission. -3. Neither the name, trademarks, nor service marks of Sinusoidal Systems AB may be +3. Neither the name, trademarks, nor service marks of {{company}} may be used to endorse or promote products derived from this Software without specific prior written permission. From c381644357205d9dedb5991fc4760ed6da86cf35 Mon Sep 17 00:00:00 2001 From: dikshaa2909 Date: Tue, 3 Feb 2026 23:58:14 +0530 Subject: [PATCH 5/6] Fix license expression to mit AND no-endorsement Signed-off-by: dikshaa2909 --- .../data/rules/mit_attribution_no_endorsement.RULE | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE index c5591f2d92..15a93821ce 100644 --- a/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE +++ b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE @@ -4,7 +4,7 @@ is_license_text: yes relevance: 100 --- -Copyright {{year}} {{company}} +Copyright 2025 Sinusoidal Systems AB {{Permission is hereby granted, free of charge}}, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in @@ -18,11 +18,11 @@ so, subject to the following conditions: 2. Redistributions of the Software in source or binary form must include an attribution notice stating that the Software was originally developed by - {{company}}, and may not in any way suggest that {{company}} + Sinusoidal Systems AB, and may not in any way suggest that Sinusoidal Systems AB endorses or is affiliated with the redistribution or derivative work without prior written permission. -3. Neither the name, trademarks, nor service marks of {{company}} may be +3. Neither the name, trademarks, nor service marks of Sinusoidal Systems AB may be used to endorse or promote products derived from this Software without specific prior written permission. From 65ed724655994b3f3499d922fa6782ecbbd32f37 Mon Sep 17 00:00:00 2001 From: dikshaa2909 Date: Fri, 6 Feb 2026 20:51:35 +0530 Subject: [PATCH 6/6] Fix MIT attribution rule syntax Signed-off-by: dikshaa2909 --- .../data/rules/mit_attribution_no_endorsement.RULE | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE index 15a93821ce..0cc8adbdc6 100644 --- a/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE +++ b/src/licensedcode/data/rules/mit_attribution_no_endorsement.RULE @@ -1,7 +1,8 @@ --- -license_expression: mit AND no-endorsement +license_expression: mit is_license_text: yes relevance: 100 +minimum_coverage: 98 --- Copyright 2025 Sinusoidal Systems AB