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§
- Line
Diagnostic - One 1-indexed diagnostic on a source line.
Enums§
- Diagnostic
Kind - Kind of a line-level check diagnostic.
Constants§
- DEFAULT_
LONG_ THRESHOLD - Default character threshold for the advisory
longkind whenmax_widthis unset (0).
Functions§
- collect_
diagnostics - Collect fused / wrap / long diagnostics for
input. - resolve_
long_ threshold - Width used for
long:max_widthwhen set, otherwise the configured default (120 if unset). - would_
reformat - Identity check used by CLI
--checkand MCPwould_reformat.