From 2bef28e8163005515acc350b5b32ece19406408a Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Wed, 19 Apr 2023 02:17:51 +0000 Subject: [PATCH] scripts: checkpatch: Add Warn title check Signed-off-by: Joseph Chen Change-Id: Ic590911284ef8ada109c07b059fdafd2ea098de2 --- scripts/checkpatch.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/checkpatch.sh b/scripts/checkpatch.sh index 85317fea..f1a4e661 100755 --- a/scripts/checkpatch.sh +++ b/scripts/checkpatch.sh @@ -69,6 +69,11 @@ function check_doc() fi # check title + if grep -Eq '### WARN|### WARNING|### Warning|### warn|### warning' ${DIFF_DOC_ALL} ; then + echo "ERROR: ${DOC}: Please use '### Warn'" + exit 1 + fi + if grep -Eq '### NEW|### new' ${DIFF_DOC_ALL} ; then echo "ERROR: ${DOC}: Please use '### New'" exit 1