From 9e87bd7ad67afeb3af91f8d82e1b3e2020b8e22f Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 26 Sep 2023 23:04:33 +0000 Subject: [PATCH] gitlint: exclude long line with co-authored-by Treat co-authored-by like signed-off-by. Signed-off-by: Anas Nashif --- scripts/gitlint/zephyr_commit_rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gitlint/zephyr_commit_rules.py b/scripts/gitlint/zephyr_commit_rules.py index 8979292bbb6..ea31c6737f3 100644 --- a/scripts/gitlint/zephyr_commit_rules.py +++ b/scripts/gitlint/zephyr_commit_rules.py @@ -109,7 +109,7 @@ class MaxLineLengthExceptions(LineRule): def validate(self, line, _commit): max_length = self.options['line-length'].value urls = re.findall(r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', line) - if line.startswith('Signed-off-by'): + if line.lower().startswith('signed-off-by') or line.lower().startswith('co-authored-by'): return if urls: