From 7324a38d1622f048cda808b64e018bab7a7a344d Mon Sep 17 00:00:00 2001 From: Bryan Huntsman Date: Tue, 4 May 2010 17:31:32 -0700 Subject: [PATCH] scripts/checkpatch.pl: warn on invalid credentials @quicinc.com identities are not allowed. Check the "From:" field in the patch, equivalent to the author in the git commit, and the Signed-off-by field. Signed-off-by: Bryan Huntsman (cherry picked from commit 374146d3656f815f45145861396df4ee35f60cec) --- scripts/checkpatch.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index e672c142e0e..737bcc810e7 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1714,6 +1714,14 @@ sub process { "email address '$email' might be better as '$suggested_email$comment'\n" . $herecurr); } } + if ($line =~ /^\s*signed-off-by:.*quicinc\.com/i) { + WARN("invalid Signed-off-by identity\n" . $line ); + } + } + +#check the patch for invalid author credentials + if ($line =~ /^From:.*quicinc\.com/) { + WARN("invalid author identity\n" . $line ); } # Check for wrappage within a valid hunk of the file