Skip to contentSkip to conversation

checkpatch: reword long-line warning about commit-msg

PATCH In review Jim Cromie 2 participants 2 messages Sep 7, 2023 Checkpatch

lore
Share & tools
lore

Jim Cromie

author
#0 lore raw

PATCH 2/2 checkpatch: reword long-line warning about commit-msg

The COMMIT_LOG_LONG_LINE warning complains about:
1- possible unwrapped commit description
2- line too long

The actual test is #2, so reword it to say that 1st. This could reduce potential confusion for newbie users.

---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index 6aabcc1f66c1..6e789dc07420 100755
@@ -3272,7 +3272,7 @@ sub process {
 					# A Fixes:, link or signature tag line
 		      $commit_log_possible_stack_dump)) {
 			WARN("COMMIT_LOG_LONG_LINE",
-			     "Possible unwrapped commit description (prefer a maximum 75 chars per line)\n" . $herecurr);
+			     "Prefer a maximum 75 chars per line (possible unwrapped commit description?)\n" . $herecurr);
 			$commit_log_long_line = 1;
 		}
 
Signature · 1 line
2.41.0
maintainer
#1 lore raw
Quoted 6 lines · Jim Cromie

The COMMIT_LOG_LONG_LINE warning complains about:
1- possible unwrapped commit description
2- line too long

The actual test is #2, so reword it to say that 1st. This could reduce potential confusion for newbie users.

I don't see this as valuable.

Quoted 22 lines
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index 6aabcc1f66c1..6e789dc07420 100755
@@ -3272,7 +3272,7 @@ sub process {
 					# A Fixes:, link or signature tag line
 		      $commit_log_possible_stack_dump)) {
 			WARN("COMMIT_LOG_LONG_LINE",
-			     "Possible unwrapped commit description (prefer a maximum 75 chars per line)\n" . $herecurr);
+			     "Prefer a maximum 75 chars per line (possible unwrapped commit description?)\n" . $herecurr);
 			$commit_log_long_line = 1;
 		}