Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Do not spell check Makefiles and JSON files
Browse files Browse the repository at this point in the history
Spell check does not handle JSON files very well. It finds misspelled
words in hexadecimal hashes (like misspelled "dead" in "123daed456").

Ignore Makefiles too - there is not so much free text to spell check
and the spell check complains about words it was told by Makefile to
ignore.
  • Loading branch information
krnowak committed Aug 4, 2016
1 parent dcaa750 commit 97eb8d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/lint
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ function spell_check {
filename="$1"
local lint_result=0

# we don't want to spell check tar balls or binaries
# we don't want to spell check tar balls, binaries, Makefile and json files
if file "$filename" | grep executable >/dev/null 2>&1; then
return $lint_result
fi
if [[ $filename == *".tar" || $filename == *".gz" ]]; then
if [[ $filename == *".tar" || $filename == *".gz" || $filename == *".json" || $(basename "$filename") == "Makefile" ]]; then
return $lint_result
fi

Expand Down

0 comments on commit 97eb8d0

Please sign in to comment.