Expand description
cargo-spellcheck
A syntax tree based doc comment and common mark spell checker.
Re-exports§
pub use doc_chunks as documentation;
pub use self::action::*;
Modules§
- action
- Covers all user triggered actions (except for signals).
- errors
- Global error usage without cluttering each file.
- util
Structs§
- Args
- Checkable
Chunk - A chunk of documentation that is supposed to be checked.
- Clusters
- Cluster comments together, such they appear as continuous text blocks.
- Common
- Config
- Documentation
- Collection of all the documentation entries across the project
- Hunspell
Config - Language
Tool Config - Line
Column - A line-column pair representing the start or end of a
Span
. - Manifest
Metadata - Manifest
Metadata Spellcheck - Multiple
Checker Types - Plain
Overlay - A plain representation of cmark riddled chunk.
- Span
- Relative span in relation to the beginning of a doc comment.
- Suggestion
- A suggestion for certain offending span.
- Suggestion
Set - A set of suggestions across multiple files, clustered per file
- TinHat
- Blocks (UNIX) signals.
- Unknown
Checker Type Variant
Enums§
- Checker
Type - Checker types to be derived from the stringly typed arguments.
- Comment
Variant - Track what kind of comment the literal is
- Comment
Variant Category - Determine if a
CommentVariant
is a documentation comment or not. - Config
Write Destination - Content
Origin - Definition of the source of a checkable chunk
- Detector
- Bitflag of available checkers by compilation / configuration.
- Exit
Code - A simple exit code representation.
- Sub
- Unified
Args - Unified arguments with configuration fallbacks.
Functions§
- byte_
range_ to_ char_ range - Convert a given byte range of a string, that is known to be at valid char bounds, to a character range.
- byte_
range_ to_ char_ range_ many - Convert many byte ranges to character ranges.
- condition_
display_ content - For long lines, literal will be trimmed to display in one terminal line. Misspelled words that are too long shall also be ellipsized.
- derive_
job_ count - Set the worker pool job/thread count.
- extract_
delimiter - Extract line delimiter of a string.
- generate_
completions - get_
terminal_ size - Terminal size in characters.
- iter_
with_ line_ column - Iterate over annotated chars starting from line 1 and column 0 assuming
s
starts there. - iter_
with_ line_ column_ from - Iterate over a str and annotate with line and column.
- load_
span_ from - Extract
span
from aRead
-able source asString
. - run
- The inner main.
- signal_
handler - Handle incoming signals.
- sub_
char_ range - Extract a subset of chars by iterating. Range must be in characters.
- sub_
chars - Extract a subset of chars by iterating. Range must be in characters.
Type Aliases§
- Range
- Range based on
usize
, simplification.