From 4fb97576e95ccbbe485e77b46aa10f8b4ea74946 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 30 Aug 2022 13:37:49 -0700 Subject: [PATCH] run-codespell: Update codespell exclude list. Signed-off-by: Anders Kaseorg --- .codespellignore | 2 ++ tools/run-codespell | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.codespellignore b/.codespellignore index 638e0a91ce..0c9e2d9a15 100644 --- a/.codespellignore +++ b/.codespellignore @@ -18,3 +18,5 @@ nd ot womens vise +falsy +ro diff --git a/tools/run-codespell b/tools/run-codespell index 4e1ce03a07..9447d482e4 100755 --- a/tools/run-codespell +++ b/tools/run-codespell @@ -9,7 +9,20 @@ IGNORE_WORDS_FILE=.codespellignore if [ "$#" -eq 0 ]; then echo "No argument specified. Checking on the entire repo..." - FILES_TO_BE_CHECKED="$(git ls-files -- ':(exclude)locale' ':(exclude)*fixtures*' ':(exclude)*.svg' ':(exclude)docs/translating' ':(exclude)yarn.lock' ':(exclude)docs/THIRDPARTY' ':(exclude)*postgresql.conf.template.erb' ':(exclude)tools/setup/emoji/emoji_names.py' ':(exclude)tools/setup/emoji/emoji_map.json' ':(exclude)zerver/management/data/unified_reactions.json')" + FILES_TO_BE_CHECKED="$( + git ls-files -- \ + ':!*.asc' \ + ':!*.svg' \ + ':!*/fixtures/*' \ + ':!docs/THIRDPARTY' \ + ':!docs/translating' \ + ':!locale' \ + ':!postgresql.conf.template.erb' \ + ':!tools/setup/emoji/emoji_map.json' \ + ':!tools/setup/emoji/emoji_names.py' \ + ':!yarn.lock' \ + ':!zerver/management/data/unified_reactions.json' + )" mapfile -t FILES_TO_BE_CHECKED <<<"$FILES_TO_BE_CHECKED" else FILES_TO_BE_CHECKED=("$@")