scripts: Ignore pEvent for spelling

Had to use REGEX because for some reason the ignore word list isn't case
sensitive, the docummention says it is. Added inout there to show how to
add more words.
This commit is contained in:
Jakob Bornecrantz 2023-06-13 20:39:24 +01:00
parent 5f6714172b
commit 71fa4fd3b4

View file

@ -19,7 +19,8 @@
set -e
# Comma-delimited list of words for codespell to not try to correct.
IGNORE_WORDS_LIST="ang,sinc,sie,inout,stoll,wil,daa,localy,od,ser,unknwn,parm"
IGNORE_WORDS_LIST="ang,sinc,sie,stoll,wil,daa,localy,od,ser,unknwn,parm"
IGNORE_REGEX="\b(pEvent|inout)\b"
SCRIPTDIR=$(cd "$(dirname "$0")" && pwd)
@ -44,6 +45,7 @@ SCRIPTDIR=$(cd "$(dirname "$0")" && pwd)
-o -name "CMakeLists.txt" \) \
-exec codespell \
"--exclude-file=${SCRIPTDIR}/monado-codespell.exclude" \
"--ignore-regex=${IGNORE_REGEX}" \
--ignore-words-list="${IGNORE_WORDS_LIST}" \
-w \
"$@" \