normalize-output 0.3.2

Output formatting for normalize CLI commands
Documentation
1
2
3
4
5
# normalize-output

Output formatting infrastructure shared across the normalize binary and `normalize-session-analysis`.

Key types: `OutputFormatter` trait (`format_text()` required, `format_pretty()` defaults to text), `PrettyConfig` (enabled/colors/highlight, mergeable via `Merge`), `ColorMode` (Auto/Always/Never), `DiagnosticsReport` and `Issue` (unified diagnostic types for all check/rule commands). `Severity` enum: Error, Warning, Info, Hint (ordered by ascending severity for Ord); also provides `as_str`, `to_sarif_level`, `from_sarif_level` methods and is re-exported by `normalize-tools` as `DiagnosticSeverity`. `DiagnosticsReport::merge` sums `files_checked` across reports. Also exports `progress_bar`, `progress_bar_good`, `progress_bar_bad` helpers. `DiagnosticsReport` implements `OutputFormatter` and provides `format_sarif()` for SARIF 2.1.0 output. JSON/jq output is handled by the server-less proc macro, not here.