diff --git a/.gitlint b/.gitlint index 9f31197ee2..14ea524644 100644 --- a/.gitlint +++ b/.gitlint @@ -1,5 +1,5 @@ [general] -ignore=title-trailing-punctuation, body-min-length, body-is-missing, title-imperative-mood +ignore=title-trailing-punctuation, body-min-length, body-is-missing extra-path=tools/lib/gitlint-rules.py diff --git a/tools/lib/gitlint-rules.py b/tools/lib/gitlint-rules.py index 1ffc7c27db..01ad1dce50 100644 --- a/tools/lib/gitlint-rules.py +++ b/tools/lib/gitlint-rules.py @@ -305,7 +305,9 @@ class ImperativeMood(LineRule): violation = RuleViolation( self.id, self.error_msg.format( - word=first_word, imperative=imperative, title=commit.message.title, + word=first_word, + imperative=imperative, + title=commit.message.title, ), )