lint: Re-enable imperative-mood checking.

This was mistakenly disabled in e1f943913a.  Re-enable it.
This commit is contained in:
Alex Vandiver 2021-02-23 14:26:07 -08:00 committed by Tim Abbott
parent 12ade4c49d
commit 289b5bc100
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
[general] [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 extra-path=tools/lib/gitlint-rules.py

View File

@ -305,7 +305,9 @@ class ImperativeMood(LineRule):
violation = RuleViolation( violation = RuleViolation(
self.id, self.id,
self.error_msg.format( self.error_msg.format(
word=first_word, imperative=imperative, title=commit.message.title, word=first_word,
imperative=imperative,
title=commit.message.title,
), ),
) )