summaryrefslogtreecommitdiffstats
path: root/git-hooks
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2017-10-10 12:11:27 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2017-10-16 16:11:55 +0000
commitad7346df2ee44889eb9aad1d6781edf4aa7c3ef2 (patch)
treedf1611c8df18224233a78599af4c55584c4e1cb8 /git-hooks
parentc96847a756798a3fa2d0a4c1395008676f00cfb0 (diff)
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 <oswald.buddenhagen@qt.io>
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/sanitize-commit4
1 files changed, 4 insertions, 0 deletions
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 = ' [*]';