Expand description
Canonical diagnostic data model.
Runtime-neutral and wasm-safe — no colored, no file IO, no VM.
Shared between CLI (src/main/tty_render.rs), LSP (aver-lsp),
and playground (src/playground.rs).
Structs§
- Analysis
Report - Annotated
Region - Diagnostic
- Format
Violation - One formatter rule firing on one location. Emitted by
try_format_sourcealongside the rewritten text, then folded into a canonicalneeds-formatDiagnosticby the factory. - Related
Span - Repair
- Source
Line - Span
- Underline
- Verify
Block Result - Verify
Summary - Per-block verify results. Mirrors what
aver verifyused to emit asblock-resultNDJSON events — now folded into the analysis bundle so a single record per file carries failures + scorecard.
Enums§
Constants§
Functions§
- json_
escape - Minimal JSON string escaping. Kept as a standalone helper so legacy per-record CLI JSON (bit-for-bit parity with 0.9.x) can build output without pulling serde into every format string.