Crate cargo_spellcheck

source ·
Expand description

cargo-spellcheck

A syntax tree based doc comment and common mark spell checker.

Re-exports

Modules

  • Covers all user triggered actions (except for signals).
  • Chunk definition for what is going to be processed by the checkers
  • Cluster proc_macro2::Literals into LiteralSets
  • Global error usage without cluttering each file.
  • Erase cmark syntax
  • Span annotation, independent yet compatible with proc_macro2::Span

Macros

  • A debug helper to print concatenated length of all items.
  • A helper macro creating valid doc string using the macro syntax #[doc=r#"..."#].
  • A helper macro creating valid doc string using the macro syntax /// ....

Structs

Enums

  • Checker types to be derived from the stringly typed arguments.
  • Track what kind of comment the literal is
  • Determine if a CommentVariant is a documentation comment or not.
  • Definition of the source of a checkable chunk
  • Bitflag of available checkers by compilation / configuration.
  • A simple exit code representation.
  • Describes whether there is a matching segment in the source, of if it is a placeholder for i.e. a code block or inline code. These placeholders are required for grammar checks.
  • Unified arguments with configuration fallbacks.

Functions

Type Definitions

  • Range based on usize, simplification.