Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

checkpatch: detect unhandled placeholders in cover letters

Add 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.

Link: https://lkml.kernel.org/r/20250917173725.22547-2-work@onurozkan.dev
Signed-off-by: Onur Özkan <work@onurozkan.dev>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Onur Özkan and committed by
Andrew Morton
fc387a07 969493d7

+7
+7
scripts/checkpatch.pl
··· 3345 3345 } 3346 3346 } 3347 3347 3348 + # Check for auto-generated unhandled placeholder text (mostly for cover letters) 3349 + if (($in_commit_log || $in_header_lines) && 3350 + $rawline =~ /(?:SUBJECT|BLURB) HERE/) { 3351 + ERROR("PLACEHOLDER_USE", 3352 + "Placeholder text detected\n" . $herecurr); 3353 + } 3354 + 3348 3355 # Check for git id commit length and improperly formed commit descriptions 3349 3356 # A correctly formed commit description is: 3350 3357 # commit <SHA-1 hash length 12+ chars> ("Complete commit subject")