[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <66fc52aadd45f0c4178fbc6063615fee163b5a3f.1670152844.git.kai@dev.carbon-project.org>
Date: Sun, 4 Dec 2022 12:33:38 +0100
From: Kai Wasserbäch <kai@....carbon-project.org>
To: linux-kernel@...r.kernel.org
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Thorsten Leemhuis <linux@...mhuis.info>
Subject: [PATCH 1/2] feat: checkpatch: error on usage of a Buglink tag in the commit log
Suggested-by: Thorsten Leemhuis <linux@...mhuis.info>
Signed-off-by: Kai Wasserbäch <kai@....carbon-project.org>
---
scripts/checkpatch.pl | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 1e5e66ae5a..a6d2ccaa3e 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3248,6 +3248,12 @@ sub process {
}
}
+# check if Bug[lL]ink: or Bugzilla: is used and error
+ if ($in_commit_log && $line =~ /^\s*(buglink|bugzilla):\s*(.*)/i) {
+ ERROR("COMMIT_LOG_BAD_BUGLINK",
+ "Non-standard tag '" . $1 . "' - use 'Link:' instead!\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.35.1
Powered by blists - more mailing lists