From ad7346df2ee44889eb9aad1d6781edf4aa7c3ef2 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 10 Oct 2017 12:11:27 +0200 Subject: Teach sanity-bot to ignore Lorem ipsum It triggers on some of the testlib selftests, to my repeated irritation. Change-Id: I220ef37b5579abe201a35ff186a07c4da4bf89cf Reviewed-by: Oswald Buddenhagen --- git-hooks/sanitize-commit | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 6c042f0..ca6879e 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -154,6 +154,10 @@ sub check_spelling() next if $seen{$word}; $seen{$word} = 1; if (my $correction = $MISTAKES{$word}) { + if ($word eq 'nam') { + # Ignore if in a fragments commonly used in "Lorem ipsum" texts: + next if (/\bNam eget dui\b/ || /\bNam quam nunc\b/); + } my $sfx = ""; if (!$MISTAKES_BASE{$word}) { $sfx = ' [*]'; -- cgit v1.2.3