diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2019-04-17 08:00:38 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2022-09-18 08:18:53 +0000 |
commit | 772d8b42b65e4a1eb381d441219bc5c589ae6373 (patch) | |
tree | afba0e70240ee847f7941fcffd04b73943fc8f56 /tools/scripts/checkpatch.pl | |
parent | 20d4a58bd93aa17f8deb9ab6d310491f8fe9719b (diff) | |
download | riscv-openocd-772d8b42b65e4a1eb381d441219bc5c589ae6373.zip riscv-openocd-772d8b42b65e4a1eb381d441219bc5c589ae6373.tar.gz riscv-openocd-772d8b42b65e4a1eb381d441219bc5c589ae6373.tar.bz2 |
checkpatch: don't spell-check the spelling file
Prevent checkpatch to complain for commits that add new entries
in the dictionary of misspelled words.
Remove the ignore flag TYPO_SPELLING from .checkpatch.conf, now
spelling is functional.
Change-Id: I911dedafc243e34f753d2be687977066719ff2eb
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/5123
Tested-by: jenkins
Diffstat (limited to 'tools/scripts/checkpatch.pl')
-rwxr-xr-x | tools/scripts/checkpatch.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index 07dca63..6f877c3 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; |