[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250917173725.22547-2-work@onurozkan.dev>
Date: Wed, 17 Sep 2025 20:37:24 +0300
From: Onur Özkan <work@...rozkan.dev>
To: linux-kernel@...r.kernel.org
Cc: apw@...onical.com,
joe@...ches.com,
dwaipayanray1@...il.com,
lukas.bulwahn@...il.com,
corbet@....net,
workflows@...r.kernel.org,
linux-doc@...r.kernel.org,
Onur Özkan <work@...rozkan.dev>
Subject: [PATCH v2 1/2] checkpatch: detect unhandled placeholders in cover letters
Adds a new check PLACEHOLDER_USE to detect unhandled placeholders.
This prevents sending patch series with incomplete patches (mostly
in cover letters) containing auto generated subject or blurb lines.
These placeholders can be seen on mailing lists. With this change,
checkpatch will emit an error when such text is found.
Signed-off-by: Onur Özkan <work@...rozkan.dev>
---
scripts/checkpatch.pl | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e722dd6fa8ef..965faee71935 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3340,6 +3340,13 @@ sub process {
}
}
+# Check for auto-generated unhandled placeholder text (mostly for cover letters)
+ if (($in_commit_log || $in_header_lines) &&
+ $rawline =~ /(?:SUBJECT|BLURB) HERE/) {
+ ERROR("PLACEHOLDER_USE",
+ "Placeholder text detected\n" . $herecurr);
+ }
+
# Check for git id commit length and improperly formed commit descriptions
# A correctly formed commit description is:
# commit <SHA-1 hash length 12+ chars> ("Complete commit subject")
--
2.51.0
Powered by blists - more mailing lists