This is an automated email from Gerrit.

Antonio Borneo (borneo.anto...@gmail.com) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/5123

-- gerrit

commit 932d7ed1b4717cad7a99a614ef29f8a6f1701f28
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Wed Apr 17 08:00:38 2019 +0200

    [RFC] 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.
    While there, remove also the ignore flag BAD_SIGN_OFF, required
    only for the initial commit of checkpatch.pl
    
    Change-Id: I911dedafc243e34f753d2be687977066719ff2eb
    Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com>

diff --git a/.checkpatch.conf b/.checkpatch.conf
index d9b19dd..27dfd30 100644
--- a/.checkpatch.conf
+++ b/.checkpatch.conf
@@ -10,7 +10,3 @@
 --ignore SPDX_LICENSE_TAG
 --ignore SWITCH_CASE_INDENT_LEVEL
 --ignore VOLATILE
-
-# Temporarily lines, to commit checkpatch itself. To be removed!
---ignore BAD_SIGN_OFF
---ignore TYPO_SPELLING
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl
index b8a7262..f1be749 100755
--- a/tools/scripts/checkpatch.pl
+++ b/tools/scripts/checkpatch.pl
@@ -2868,6 +2868,7 @@ sub process {
 
 # Check for various typo / spelling mistakes
                if (defined($misspellings) &&
+                   index($spelling_file, $realfile) + length($realfile) != 
length($spelling_file) &&
                    ($in_commit_log || $line =~ /^(?:\+|Subject:)/i)) {
                        while ($rawline =~ 
/(?:^|[^a-z@])($misspellings)(?:\b|$|[^a-z@])/gi) {
                                my $typo = $1;

-- 


_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to