checkpatch: don't spell-check the spelling file
[fw/openocd] / tools / scripts / checkpatch.pl
index 07dca63db96b1583daeab97150c2495a898b320f..6f877c379edc3eee787c48d96f6f1df5434d663c 100755 (executable)
@@ -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;