Introducing lein-spell,
https://github.com/cldwalker/lein-spell - a library to quickly and easily spell check your clojure libraries.
Usage
---------
lein-spell prints misspelled words, one per line to STDOUT.
By default your library's docstrings and markdown/txt docs are searched:
$ lein-spell
associtaed
bugfix
communitcated
...
You can also check individual files:
Until lein-spell's dictionary is good enough, there will be false positives. Add those to your local whitelist in .lein-spell. In the example above, bugfix would be a false positive.
Once you're ready to edit your typos, you can see their locations with:
$ lein spell -n
./README.md:25:associtaed
src/my/lib.clj:44:communitcated
This format is compatible with vim's grep so you can easily navigate your typos
$ vim -c 'set grepprg=lein\ spell\ -n' -c 'botright copen' -c 'silent! grep'
Install
---------
Install aspell:
# For mac osx
$ brew install aspell
# For ubuntu/debian
$ apt-get install aspell
Add to your project's :plugins key:
[lein-spell "0.1.0"]
Feedback welcome,
Gabriel