mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] checkpatch: Don't check for 75 chars per line for create/delete mode lines
@ 2024-02-22  5:15 Saravana Kannan
  2024-02-22  5:15 ` [PATCH 2/2] checkpatch: Don't check for unified diff format in git sendemail headers Saravana Kannan
  2024-04-12  4:33 ` [PATCH 1/2] checkpatch: Don't check for 75 chars per line for create/delete mode lines Saravana Kannan
  0 siblings, 2 replies; 9+ messages in thread
From: Saravana Kannan @ 2024-02-22  5:15 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches, Dwaipayan Ray, Lukas Bulwahn
  Cc: Saravana Kannan, kernel-team, linux-kernel

Cover letters have a "create/delete mode <mode> <filename>" line for files
added/deleted in the patch series. Ignore these lines when checking for the
maximum 75 chars per line limit.

Signed-off-by: Saravana Kannan <saravanak@google.com>
---
 scripts/checkpatch.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9c4c4a61bc83..f306634a938c 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3271,6 +3271,8 @@ sub process {
 					# filename then :
 		      $line =~ /^\s*(?:Fixes:|$link_tags_search|$signature_tags)/i ||
 					# A Fixes:, link or signature tag line
+		      $line =~ /^\s*(?:delete|create) mode\s+[0-8]+\s+\S+\s*$/i ||
+					# A "create/delete mode <mode> <filename>" line found in cover letters
 		      $commit_log_possible_stack_dump)) {
 			WARN("COMMIT_LOG_LONG_LINE",
 			     "Prefer a maximum 75 chars per line (possible unwrapped commit description?)\n" . $herecurr);
-- 
2.44.0.rc0.258.g7320e95886-goog


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-04-12  4:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-22  5:15 [PATCH 1/2] checkpatch: Don't check for 75 chars per line for create/delete mode lines Saravana Kannan
2024-02-22  5:15 ` [PATCH 2/2] checkpatch: Don't check for unified diff format in git sendemail headers Saravana Kannan
2024-02-22  8:54   ` Joe Perches
2024-02-23  0:45     ` Saravana Kannan
2024-02-23  1:01       ` Joe Perches
2024-02-23  1:10         ` Saravana Kannan
2024-02-23  1:22           ` Joe Perches
2024-02-23 19:05           ` Lukas Bulwahn
2024-04-12  4:33 ` [PATCH 1/2] checkpatch: Don't check for 75 chars per line for create/delete mode lines Saravana Kannan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®