mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: Steve Muckle <smuckle@codeaurora.org> (cherry picked from commit 336a3ae6253031d6a0de11882ac24a11f83d3323)
This commit is contained in:
parent
87c8e7d5be
commit
097d733966
1 changed files with 4 additions and 1 deletions
|
@ -1671,7 +1671,10 @@ sub process {
|
|||
WARN("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) {
|
||||
|
|
Loading…
Reference in a new issue