run-codespell: Update codespell exclude list.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-08-30 13:37:49 -07:00 committed by Tim Abbott
parent 019c9527c1
commit 4fb97576e9
2 changed files with 16 additions and 1 deletions

View File

@ -18,3 +18,5 @@ nd
ot
womens
vise
falsy
ro

View File

@ -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=("$@")