From: Joe Perches Date: Thu, 16 Apr 2015 19:44:08 +0000 (-0700) Subject: checkpatch: add spell checking of email subject line X-Git-Tag: v4.1-rc1~102^2~117 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=66d7a382cb5d2d40b468e68b665bbf6f9bc3400e;hp=6ab3a9701e00c2a085bac6a7a9bdcf8fc5eca6c5;p=linux-2.6-block.git checkpatch: add spell checking of email subject line Only commit log and patch additions are checked for typos and spelling errors currently. Add a check of the email subject line too. Signed-off-by: Joe Perches Suggested-by: Jani Nikula Tested-by: Jani Nikula Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 421bbb47844f..c061a63afa20 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2303,7 +2303,8 @@ sub process { } # Check for various typo / spelling mistakes - if (defined($misspellings) && ($in_commit_log || $line =~ /^\+/)) { + if (defined($misspellings) && + ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) { while ($rawline =~ /(?:^|[^a-z@])($misspellings)(?:$|[^a-z@])/gi) { my $typo = $1; my $typo_fix = $spelling_fix{lc($typo)};