Skip to main content

Module check

Module check 

Source
Expand description

Line-level --check diagnostics: fused, wrap, and long.

These kinds describe the source as written. They share the same sentence splitter as format so abbreviations do not produce false fused hits.

Structs§

LineDiagnostic
One 1-indexed diagnostic on a source line.

Enums§

DiagnosticKind
Kind of a line-level check diagnostic.

Constants§

DEFAULT_LONG_THRESHOLD
Default character threshold for the advisory long kind when max_width is unset (0).

Functions§

collect_diagnostics
Collect fused / wrap / long diagnostics for input.
resolve_long_threshold
Width used for long: max_width when set, otherwise the configured default (120 if unset).
would_reformat
Identity check used by CLI --check and MCP would_reformat.