mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 09:16:20 +00:00
codespell: change file names, add possibility to write changes
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
8e0c6cd164
commit
69c4c8a074
6
check.sh → codespell_check.sh
Normal file → Executable file
6
check.sh → codespell_check.sh
Normal file → Executable file
@ -20,7 +20,7 @@ fi
|
|||||||
cd $LWIPBASE
|
cd $LWIPBASE
|
||||||
|
|
||||||
: "${LWIPTOOLS:=${LWIPBASE}}"
|
: "${LWIPTOOLS:=${LWIPBASE}}"
|
||||||
. "${LWIPTOOLS}"/changed_files.sh
|
. "${LWIPTOOLS}"/codespell_changed_files.sh
|
||||||
|
|
||||||
FILEREGEX='\.([CcHh]|sh|py|md|txt)$'
|
FILEREGEX='\.([CcHh]|sh|py|md|txt)$'
|
||||||
EXCLUDE='^(./contrib/apps/LwipMibCompiler/Mibs)'
|
EXCLUDE='^(./contrib/apps/LwipMibCompiler/Mibs)'
|
||||||
@ -39,7 +39,9 @@ CODESPELL_OPTS="-q 2" # Disable "WARNING: Binary file"
|
|||||||
CODESPELL_OPTS+=" --check-hidden"
|
CODESPELL_OPTS+=" --check-hidden"
|
||||||
# Disable false positives "nd => and, 2nd", "ans => and", "tolen => token",
|
# Disable false positives "nd => and, 2nd", "ans => and", "tolen => token",
|
||||||
# "ofo => of", "WAN => WANT", "mut => must, mutt, moot"
|
# "ofo => of", "WAN => WANT", "mut => must, mutt, moot"
|
||||||
CODESPELL_OPTS+=" --ignore-words-list=nd,ans,tolen,ofo,wan,mut"
|
CODESPELL_OPTS+=" --ignore-words-list=nd,ans,tolen,ofo,wan,mut "
|
||||||
|
# propagate all options to codespell -> pass "-w" to this script to write changes
|
||||||
|
CODESPELL_OPTS+="$@"
|
||||||
|
|
||||||
# Filter-out all false positive raising "disabled due to" messages.
|
# Filter-out all false positive raising "disabled due to" messages.
|
||||||
ERRORS=$(${CODESPELL_CMD} ${CODESPELL_OPTS} ${FILES} | grep -ve "disabled due to")
|
ERRORS=$(${CODESPELL_CMD} ${CODESPELL_OPTS} ${FILES} | grep -ve "disabled due to")
|
Loading…
Reference in New Issue
Block a user