Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 317c2c79 authored by Steve Muckle's avatar Steve Muckle Committed by Kyle Yan
Browse files

checkpatch: recognize only specific tags when ending commit text



There are some very frequently used tags that checkpatch can look
for as an ending to the commit text rather than using a pattern,
which can generate false positives in the "no commit text" rule.

Change-Id: I5b4400017b8273bcd9f5a59b3e28965c0062bef4
Signed-off-by: default avatarSteve Muckle <smuckle@codeaurora.org>
Signed-off-by: default avatarStepan Moskovchenko <stepanm@codeaurora.org>
parent 9652557d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2288,7 +2288,10 @@ sub process {
					     "commit text line over " .
					     SHORTTEXT_LIMIT .
					     " characters\n" . $herecurr);
				} elsif ($line=~/^\s*[\x21-\x39\x3b-\x7e]+:/) {
				} elsif ($line=~/^\s*change-id:/i ||
					 $line=~/^\s*signed-off-by:/i ||
					 $line=~/^\s*crs-fixed:/i ||
					 $line=~/^\s*acked-by:/i) {
					# this is a tag, there must be commit
					# text by now
					if ($commit_text_present == 0) {