From 289b5bc100574ccf3dfa81c4790ddb284d2fcfa5 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Tue, 23 Feb 2021 14:26:07 -0800 Subject: [PATCH] lint: Re-enable imperative-mood checking. This was mistakenly disabled in e1f943913ad1. Re-enable it. --- .gitlint | 2 +- tools/lib/gitlint-rules.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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, ), )