Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

run-codespell: Update codespell exclude list.

Anders Kaseorg4fb97576e95c
diff --git a/.codespellignore b/.codespellignore
index 638e0a91cea..0c9e2d9a158 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 4e1ce03a070..9447d482e48 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=("$@")