Skip to content

Commit

Permalink
add spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mdgriffith committed Dec 28, 2017
1 parent 2c4585d commit cbaeca8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.PHONY: spellcheck
spellcheck: $(shell find src -name '*.elm')
./tests/spellcheck.sh $(shell find src -name '*.elm')
11 changes: 11 additions & 0 deletions tests/spellcheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

for file in $@; do
aspell -c "$file" \
--add-filter context \
--add-context-delimiters="{- -}" \
--add-context-delimiters='" "' \
--home-dir=./docs/ \
--lang=en_US \
--dont-backup
done

0 comments on commit cbaeca8

Please sign in to comment.