All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] checkpatch: accept longer commit description lines
@ 2020-09-10 14:32 Tetsuo Handa
  2020-09-10 14:42 ` Joe Perches
  0 siblings, 1 reply; 2+ messages in thread
From: Tetsuo Handa @ 2020-09-10 14:32 UTC (permalink / raw)
  To: Linus Torvalds, Andy Whitcroft, Joe Perches; +Cc: linux-kernel, Tetsuo Handa

Given that commit bdc48fa11e46f867 ("checkpatch/coding-style: deprecate
80-column warning") was introduced because nowadays most of us are using
screens that can print more than 100 columns, most of us will be also
using mail clients that can print more than 100 columns. Since 75 chars
limit for commit description lines is sometimes inconvenient for obeying
'commit <12+ chars of sha1> ("<title line>")' style or embedding URLs,
loosen the limit by 20 chars.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
---
 scripts/checkpatch.pl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 504d2e431c60..bebeef90fc61 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2800,9 +2800,9 @@ sub process {
 			$commit_log_possible_stack_dump = 1;
 		}
 
-# Check for line lengths > 75 in commit log, warn once
+# Check for line lengths > 95 in commit log, warn once
 		if ($in_commit_log && !$commit_log_long_line &&
-		    length($line) > 75 &&
+		    length($line) > 95 &&
 		    !($line =~ /^\s*[a-zA-Z0-9_\/\.]+\s+\|\s+\d+/ ||
 					# file delta changes
 		      $line =~ /^\s*(?:[\w\.\-]+\/)++[\w\.\-]+:/ ||
@@ -2811,7 +2811,7 @@ sub process {
 					# A Fixes: or Link: line
 		      $commit_log_possible_stack_dump)) {
 			WARN("COMMIT_LOG_LONG_LINE",
-			     "Possible unwrapped commit description (prefer a maximum 75 chars per line)\n" . $herecurr);
+			     "Possible unwrapped commit description (prefer a maximum 95 chars per line)\n" . $herecurr);
 			$commit_log_long_line = 1;
 		}
 
-- 
2.18.4


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

* Re: [PATCH] checkpatch: accept longer commit description lines
  2020-09-10 14:32 [PATCH] checkpatch: accept longer commit description lines Tetsuo Handa
@ 2020-09-10 14:42 ` Joe Perches
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Perches @ 2020-09-10 14:42 UTC (permalink / raw)
  To: Tetsuo Handa, Linus Torvalds, Andy Whitcroft; +Cc: linux-kernel

On Thu, 2020-09-10 at 23:32 +0900, Tetsuo Handa wrote:
> Given that commit bdc48fa11e46f867 ("checkpatch/coding-style: deprecate
> 80-column warning") was introduced because nowadays most of us are using
> screens that can print more than 100 columns, most of us will be also
> using mail clients that can print more than 100 columns. Since 75 chars
> limit for commit description lines is sometimes inconvenient for obeying
> 'commit <12+ chars of sha1> ("<title line>")' style or embedding URLs,
> loosen the limit by 20 chars.

My inclination ks to say thanks, but no thanks.

My standard terminal window is a different width than
my standard editing window.




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

end of thread, other threads:[~2020-09-10 21:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10 14:32 [PATCH] checkpatch: accept longer commit description lines Tetsuo Handa
2020-09-10 14:42 ` Joe Perches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.