scripts: checkpatch: Add Warn title check
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ic590911284ef8ada109c07b059fdafd2ea098de2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user