Documentation
¶
Overview ¶
Package report renders scan results as a human-readable table.
Index ¶
- Variables
- func PrintBanner(version string, dbRecords int)
- func PrintCSV(res *scanner.Result)
- func PrintCycloneDX(toolVersion string, res *scanner.Result)
- func PrintHTML(res *scanner.Result)
- func PrintJSONL(res *scanner.Result)
- func PrintJUnit(version string, res *scanner.Result)
- func PrintMarkdown(res *scanner.Result)
- func PrintSARIF(version string, res *scanner.Result)
- func PrintSummary(res *scanner.Result)
- func PrintTable(res *scanner.Result, verbose bool, minSeverity string)
- func WriteCSV(w io.Writer, res *scanner.Result) error
- func WriteHTML(w io.Writer, res *scanner.Result) error
- func WriteJUnit(w io.Writer, version string, res *scanner.Result) error
- func WriteMarkdown(w io.Writer, res *scanner.Result)
Constants ¶
This section is empty.
Variables ¶
var NoColor bool
NoColor forces plain output without ANSI codes even when stdout is a terminal (used by --format cli-no-colour).
Functions ¶
func PrintBanner ¶ added in v0.2.0
PrintBanner prints the startup banner (nuclei-style MOTD).
func PrintCycloneDX ¶ added in v0.3.0
PrintCycloneDX writes res as a CycloneDX 1.5 JSON BOM to stdout: one application component per detected plugin/theme, ordered by slug then type, with onyx:type properties. Target-controlled strings are stripped of control characters and length-capped before embedding so a hostile target cannot corrupt the document.
func PrintJSONL ¶ added in v0.2.0
PrintJSONL prints res as JSON Lines: one compact JSON object per finding.
func PrintJUnit ¶ added in v0.3.1
PrintJUnit prints the result as JUnit XML to stdout.
func PrintMarkdown ¶ added in v0.3.1
PrintMarkdown prints the result as Markdown to stdout.
func PrintSARIF ¶ added in v0.2.0
PrintSARIF writes res as a minimal SARIF 2.1.0 report: a single run whose tool driver is "onyx" and whose results are the scan findings.
func PrintSummary ¶ added in v0.3.0
PrintSummary prints the scan summary section (table formats).
func PrintTable ¶
PrintTable prints res to stdout. Default is a compact per-component summary; pass verbose=true for the full one-line-per-finding listing. minSeverity filters findings below the given rating ("critical", "high", "medium", "low").
func WriteHTML ¶ added in v0.3.1
WriteHTML renders res as a standalone HTML page with inline CSS — no external assets. Every target-derived string is HTML-escaped.
func WriteJUnit ¶ added in v0.3.1
WriteJUnit writes res as JUnit XML: one failing testcase per recorded vulnerability, grouped into one testsuite per vulnerable component. A clean scan produces a single passing testcase so CI systems always see a structurally valid report. encoding/xml escapes every field.
Types ¶
This section is empty.