mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
checkpatch: allow copyright statements > 80 columns
Exempt copyright statements from the 80 column rule as line-splitting or other kinds of work-arounds decrease readability in diffs. Identify the copyright statement by looking for '+/* Copyright (c)', case-insensitive, at the beginning of the line. Change-Id: I57aafd569ff2173ca7aa3f636532060fc93b2be1 Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
This commit is contained in:
parent
74c4b7ca17
commit
4ef1c34734
1 changed files with 4 additions and 0 deletions
|
|
@ -3246,6 +3246,10 @@ sub process {
|
|||
} elsif ($rawline =~ /^\+.*\b[a-z][\w\.\+\-]*:\/\/\S+/i) {
|
||||
$msg_type = "";
|
||||
|
||||
# Long copyright statements are another special case
|
||||
} elsif ($rawline =~ /^\+.\*.*copyright.*\(c\).*$/i) {
|
||||
$msg_type = "";
|
||||
|
||||
# Otherwise set the alternate message types
|
||||
|
||||
# a comment starts before $max_line_length
|
||||
|
|
|
|||
Loading…
Reference in a new issue