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

Commit 9b1dda1a authored by Bryan Huntsman's avatar Bryan Huntsman Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarBryan Huntsman <bryanh@codeaurora.org>
parent 63098a4e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3012,6 +3012,10 @@ sub process {
			} elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/) {
				$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