mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
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:
parent
5f6714172b
commit
71fa4fd3b4
|
@ -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 \
|
||||
"$@" \
|
||||
|
|
Loading…
Reference in a new issue