Module linting

Module linting 

Source
Expand description

Frameworks and rules that locate errors in text.

See the Linter trait and the documentation for authoring a rule for more information.

Structs§

InitialismLinter
A struct that can be composed to expand initialisms, respecting the capitalization of each item.
Lint
An error found in text.
LintGroup
A struct for collecting the output of a number of individual Linters. Each child can be toggled via the public, mutable Self::config object.
LintGroupConfig
The configuration for a LintGroup. Each child linter can be enabled, disabled, or set to a curated value.
MapPhraseLinter
MapPhraseSetLinter
SpellCheck

Enums§

LintKind
The general category a Lint falls into. There’s no reason not to add a new item here if you are adding a new rule that doesn’t fit the existing categories.
Suggestion
A suggested edit that could resolve a Lint.

Traits§

ExprLinter
A trait that searches for tokens that fulfil Exprs in a Document.
HtmlDescriptionLinter
A blanket-implemented trait that renders the Markdown description field of a linter to HTML.
Linter
A stateless rule that searches documents for grammatical errors.