Expand description
Reporting layer.
Responsibilities:
Structs§
- Captured
Error Record - A serialisable wrapper around
CapturedError. - Finding
- A single security or informational observation produced by a scanner.
- Report
Config - Controls how the report is written.
- Report
Document - The complete, serialisable report document written to disk / stdout.
- Report
Meta - Top-level metadata about the run.
- Report
Summary - Counts by severity — useful at a glance without reading all findings.
- Reporter
- Stateful reporter that can also act as a streaming sink for partial flushes.
Enums§
- Report
Format - Severity
- Unified severity scale shared by every scanner.
Functions§
- build_
document - build_
summary - dedup_
findings - Deduplicate findings by
(url, check, evidence)key, keeping the highest-severity instance for identical evidence payloads while preserving distinct evidence variants for the same check. - exit_
code - Returns a UNIX-style exit code appropriate for CI pipelines.
- filter_
findings - Return only findings whose severity is at or above
min_severity. - filter_
new_ findings - Filter out findings that already exist in the baseline set.
- load_
baseline_ keys - Load a baseline NDJSON file and return a set of
(url, check)keys.