Documentation
¶
Overview ¶
Package report formats scan results for humans (terminal table) and machines (SARIF). Output formats live here rather than in scan/ so the detector package stays focused on detection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeverityRank ¶
SeverityRank returns the ordinal for cmp purposes. Lower = more severe. Returns a high number for unknown severities so they sort last.
func Summary ¶
Summary returns a one-line counts breakdown — used by both the table output and CI mode's failure banner.
func WriteSARIF ¶
WriteSARIF serializes findings as a SARIF 2.1.0 log to w. The rules section is the set of unique (category, pattern) pairs seen in the findings — Code Scanning groups results by rule, so emitting a stable rule per pattern gives a cleaner dashboard.
Types ¶
This section is empty.