A command line for Source Code spell check, especially for Xcode, as the spell check doesn't work in Xcode.
- Download from https://github.com/WANGjieJacques/spellcheckcli/blob/master/Product/spellcheck?raw=true, or you can download the souce code and compile it by yourself.
- Put the
spellcheckcli
to the~/bin
, you can rename the spellcheckcli if you want. - Add
export PATH=$PATH:~/bin
to your ~/.bashrc or ~/.zshrc
- spell check the files by fileName.
spellcheckcli file1, file2...
- spell check the uncommited swfit file.
git diff --only-name|grep .swift|xargs spellcheckcli