Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66d7a382 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

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: default avatarJoe Perches <joe@perches.com>
Suggested-by: default avatarJani Nikula <jani.nikula@linux.intel.com>
Tested-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6ab3a970
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)};