cargo-spellcheck-0.0.4 is not a library.
Visit the last successful build:
cargo-spellcheck-0.15.7
cargo-spellcheck
WIP Check your spelling. WIP
Usecase
Run cargo spellcheck --fix or cargo spellcheck fix to fix all your documentation comments
in order to avoid narsty types all over the place.
Meant as a helper simplifying review as well as possibly improving CI
after a learning phase for custom/topic specifc lingo.
cargo spellcheck has a return code 1 if any unknown words are found, and 0 on success.
Error display follows cargo error printing style:
Features
- Parse doc comments from arbitrary files
- Decent error printing
-
cargo-spellcheck check - Spell checking using
hunspell - Merge multiline doc comments
- Grammar check using
languagetoolhttp API - False positive reduction
- Be
markdownaware - Exclude ``` wrapped sections
- Handle module documentation comments
- Add
README.mdfiles - Follow module declarations rather than blindly recurse
-
cargo-spellcheck fix -
cargo-spellcheck fix --interactive - Re-wrap doc comments
- Word split validation
hunspell and languagetool are currently the two supported featuresets.
Installation
cargo install cargo-spellcheck
Hunspell
Requires the native library
and building should succeed just fine.
LanguageTool
Run a instance of the LanguageTool server i.e. as container .