Skip to content

Commit

Permalink
gitlint: exclude long line with co-authored-by
Browse files Browse the repository at this point in the history
Treat co-authored-by like signed-off-by.

(cherry picked from commit 9e87bd7)

Original-Signed-off-by: Anas Nashif <anas.nashif@intel.com>
GitOrigin-RevId: 9e87bd7
Change-Id: Ifeca9f669519602aadda5f5ce82500c4b47f83bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4896614
Tested-by: Al Semjonovs <asemjonovs@google.com>
Commit-Queue: Al Semjonovs <asemjonovs@google.com>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Al Semjonovs <asemjonovs@google.com>
  • Loading branch information
nashif authored and Chromeos LUCI committed Sep 27, 2023
1 parent 3d24e41 commit b39398c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gitlint/zephyr_commit_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b39398c

Please sign in to comment.