Skip to content

Commit 1d5a2be

Browse files
authored
Also check hidden files via codespell
1 parent 49f178b commit 1d5a2be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis-ci.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ elif [[ $TASK = 'codespell' ]]; then
122122
-wholename "./.git/*" \
123123
\) | xargs)
124124
# count the number of codespell errors
125-
spellingerrors=$(zrun codespell --check-filenames --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignore $spellingfiles 2>&1 | wc -l)
125+
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 $spellingfiles 2>&1 | wc -l)
126126
if [[ $spellingerrors -ne 0 ]]; then
127127
# print the output for info
128-
zrun codespell --check-filenames --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignore $spellingfiles
128+
zrun codespell --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignore $spellingfiles
129129
echo "Found $spellingerrors spelling errors via codespell"
130130
exit 1;
131131
else

0 commit comments

Comments
 (0)