From 050c077be7df4c0da362a585e146d848e7f6f41b Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Wed, 23 Oct 2019 11:38:28 +0200 Subject: [PATCH] dist/tools/codespell: update ignore list changed wan -> WAN, codespell help says: "Words are case sensitive based on how they are written in the dictionary file" Thus WAN doesn't match but "wan" does. Also added "dout" (short form of digital out). --- dist/tools/codespell/check.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/tools/codespell/check.sh b/dist/tools/codespell/check.sh index 37fd02d2fa..6a281a23cc 100755 --- a/dist/tools/codespell/check.sh +++ b/dist/tools/codespell/check.sh @@ -37,8 +37,9 @@ ${CODESPELL_CMD} --version &> /dev/null || { CODESPELL_OPTS="-q 2" # Disable "WARNING: Binary file" CODESPELL_OPTS+=" --check-hidden" -# Disable false positives "nd => and, 2nd", "WAN => WANT", "od => of" -CODESPELL_OPTS+=" --ignore-words-list=ND,nd,WAN,od" +# Disable false positives "nd => and, 2nd", "WAN => WANT", "od => of", +# "dout => doubt" +CODESPELL_OPTS+=" --ignore-words-list=ND,nd,wan,od,dout" # Filter-out all false positive raising "disabled due to" messages. ERRORS=$(${CODESPELL_CMD} ${CODESPELL_OPTS} ${FILES} | grep -ve "disabled due to")