X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=tools%2Fscripts%2Fcheckpatch.pl;h=6f877c379edc3eee787c48d96f6f1df5434d663c;hb=772d8b42b65e4a1eb381d441219bc5c589ae6373;hp=07dca63db96b1583daeab97150c2495a898b320f;hpb=20d4a58bd93aa17f8deb9ab6d310491f8fe9719b;p=openocd.git diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index 07dca63db9..6f877c379e 100755 --- a/tools/scripts/checkpatch.pl +++ b/tools/scripts/checkpatch.pl @@ -3398,6 +3398,9 @@ sub process { # Check for various typo / spelling mistakes if (defined($misspellings) && + # OpenOCD specific: Begin: don't check spelling on spelling_file + index($spelling_file, $realfile) + length($realfile) != length($spelling_file) && + # OpenOCD specific: End ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) { while ($rawline =~ /(?:^|[^\w\-'`])($misspellings)(?:[^\w\-'`]|$)/gi) { my $typo = $1;