Skip to main content

Module json

Module json 

Source
Expand description

JSON formatter for audit reports.

Schema is stable: { "gates": [ { name, skipped, skip_reason?, severity_counts: { info, warn, error }, findings: [...] } ] }. Golden-file tested in tests/audit_gates.rs so any breaking re-shape requires a deliberate commit.

See also the sibling JUnit formatter for CI dashboards that prefer the JUnit/Surefire schema over JSON.

Functionsยง

format
Serialises report to a pretty-printed JSON string.