From 29e38800e59b13bcee2c63e30605c77b0b0d4812 Mon Sep 17 00:00:00 2001 From: Bruce Lowekamp Date: Mon, 16 Dec 2019 08:18:55 -0500 Subject: [PATCH] add codespell ignore words file --- .codespellignore => .codespellignorelines | 0 .codespellignorewords | 3 +++ .travis-ci.sh | 7 ++++--- 3 files changed, 7 insertions(+), 3 deletions(-) rename .codespellignore => .codespellignorelines (100%) create mode 100644 .codespellignorewords diff --git a/.codespellignore b/.codespellignorelines similarity index 100% rename from .codespellignore rename to .codespellignorelines diff --git a/.codespellignorewords b/.codespellignorewords new file mode 100644 index 0000000000..fdff072eaa --- /dev/null +++ b/.codespellignorewords @@ -0,0 +1,3 @@ +thead +acn +ACN diff --git a/.travis-ci.sh b/.travis-ci.sh index d237ea43ce..2a4ef3a428 100755 --- a/.travis-ci.sh +++ b/.travis-ci.sh @@ -10,7 +10,8 @@ CPP_LINT_URL="https://raw.githubusercontent.com/google/styleguide/gh-pages/cppli COVERITY_SCAN_BUILD_URL="https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" SPELLINGBLACKLIST=$(cat <<-BLACKLIST - -wholename "./.codespellignore" -or \ + -wholename "./.codespellignorewords" -or \ + -wholename "./.codespellignorelines" -or \ -wholename "./.git/*" -or \ -wholename "./aclocal.m4" -or \ -wholename "./config/config.guess" -or \ @@ -168,10 +169,10 @@ elif [[ $TASK = 'codespell' ]]; then $SPELLINGBLACKLIST \ \) | xargs") # count the number of codespell errors - spellingerrors=$(zrun codespell --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignore -L thead $spellingfiles 2>&1 | wc -l) + spellingerrors=$(zrun codespell --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignorelines --ignore-words .codespellignorewords $spellingfiles 2>&1 | wc -l) if [[ $spellingerrors -ne 0 ]]; then # print the output for info - zrun codespell --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignore -L thead $spellingfiles + zrun codespell --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignorelines --ignore-words .codespellignorewords $spellingfiles echo "Found $spellingerrors spelling errors via codespell" exit 1; else