checkpatch: treat jenkins as valid email
authorPaul Fertser <fercerpav@gmail.com>
Sat, 26 Oct 2013 07:24:43 +0000 (11:24 +0400)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 18 Sep 2022 08:18:09 +0000 (08:18 +0000)
This is needed to avoid checkpatch barking on already committed patches.

This is the old commit cadd51971535 ("checkpatch: treat jenkins as
valid email") re-applied.

Remove the flag BAD_SIGN_OFF, not anymore needed.

Change-Id: I6744f80de982f7934f3a5197ac2df1c29962cbd0
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/5120
Tested-by: jenkins
.checkpatch.conf
tools/scripts/checkpatch.pl

index 4f2c931caef74b1aff610a2df0e7811f131a0a08..0aad4c5b4050122f667515631ff55695f5dec133 100644 (file)
@@ -30,5 +30,4 @@
 
 # Temporarily lines, to commit checkpatch itself. To be removed!
 --no-tree
---ignore BAD_SIGN_OFF
 --ignore TYPO_SPELLING
index 1daedd2f2c6683651a30e167437e8746ab15812b..762e9ed821dbff214f4c3b844ce8d740abff472f 100755 (executable)
@@ -1403,6 +1403,10 @@ sub parse_email {
                        $address = "";
                        $comment = "";
                }
+       # OpenOCD specific: Begin: handle jenkins as valid email
+       } elsif ($formatted_email eq "jenkins") {
+                       $address = "jenkins";
+       # OpenOCD specific: End
        }
 
        # Extract comments from names excluding quoted parts