From 69c4c8a07434061a628c6c609eaeb2d4648f5c18 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Sat, 15 Feb 2020 21:03:23 +0100 Subject: [PATCH] codespell: change file names, add possibility to write changes Signed-off-by: Simon Goldschmidt --- changed_files.sh => codespell_changed_files.sh | 0 check.sh => codespell_check.sh | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) rename changed_files.sh => codespell_changed_files.sh (100%) rename check.sh => codespell_check.sh (87%) mode change 100644 => 100755 diff --git a/changed_files.sh b/codespell_changed_files.sh similarity index 100% rename from changed_files.sh rename to codespell_changed_files.sh diff --git a/check.sh b/codespell_check.sh old mode 100644 new mode 100755 similarity index 87% rename from check.sh rename to codespell_check.sh index 040c33c8..7d8d0dfb --- a/check.sh +++ b/codespell_check.sh @@ -20,7 +20,7 @@ fi cd $LWIPBASE : "${LWIPTOOLS:=${LWIPBASE}}" -. "${LWIPTOOLS}"/changed_files.sh +. "${LWIPTOOLS}"/codespell_changed_files.sh FILEREGEX='\.([CcHh]|sh|py|md|txt)$' EXCLUDE='^(./contrib/apps/LwipMibCompiler/Mibs)' @@ -39,7 +39,9 @@ CODESPELL_OPTS="-q 2" # Disable "WARNING: Binary file" CODESPELL_OPTS+=" --check-hidden" # Disable false positives "nd => and, 2nd", "ans => and", "tolen => token", # "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. ERRORS=$(${CODESPELL_CMD} ${CODESPELL_OPTS} ${FILES} | grep -ve "disabled due to")