From 07475d2bc1bd706bcdc5e029c0a920969937daa7 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Thu, 16 Nov 2023 10:59:38 -0800 Subject: [PATCH] gitlint: Increase the title length limit to 72 This is particularly useful for commits with long component names. Of course, it is better to have concise subject that is less than 50 char. Signed-off-by: Bo Chen --- .gitlint | 2 +- scripts/gitlint/rules.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlint b/.gitlint index 5acb7610b..09c6b46eb 100644 --- a/.gitlint +++ b/.gitlint @@ -8,7 +8,7 @@ ignore=all # default 72 [title-max-length] -line-length=50 +line-length=72 # default 80 [body-max-line-length] diff --git a/scripts/gitlint/rules.py b/scripts/gitlint/rules.py index 1c9286c6b..1aa4ef426 100644 --- a/scripts/gitlint/rules.py +++ b/scripts/gitlint/rules.py @@ -31,6 +31,7 @@ class TitleStartsWithComponent(LineRule): 'fuzz', 'github', 'gitignore', + 'gitlint', 'hypervisor', 'Jenkinsfile', 'misc',