report

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package report renders scan results as a human-readable table.

Index

Constants

This section is empty.

Variables

View Source
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

func PrintBanner(version string, dbRecords int)

PrintBanner prints the startup banner (nuclei-style MOTD).

func PrintCSV added in v0.3.0

func PrintCSV(res *scanner.Result)

PrintCSV writes res as CSV to stdout.

func PrintCycloneDX added in v0.3.0

func PrintCycloneDX(toolVersion string, res *scanner.Result)

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 PrintHTML added in v0.3.1

func PrintHTML(res *scanner.Result)

PrintHTML prints the result as a standalone HTML page to stdout.

func PrintJSONL added in v0.2.0

func PrintJSONL(res *scanner.Result)

PrintJSONL prints res as JSON Lines: one compact JSON object per finding.

func PrintJUnit added in v0.3.1

func PrintJUnit(version string, res *scanner.Result)

PrintJUnit prints the result as JUnit XML to stdout.

func PrintMarkdown added in v0.3.1

func PrintMarkdown(res *scanner.Result)

PrintMarkdown prints the result as Markdown to stdout.

func PrintSARIF added in v0.2.0

func PrintSARIF(version string, res *scanner.Result)

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

func PrintSummary(res *scanner.Result)

PrintSummary prints the scan summary section (table formats).

func PrintTable

func PrintTable(res *scanner.Result, verbose bool, minSeverity string)

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 WriteCSV added in v0.3.0

func WriteCSV(w io.Writer, res *scanner.Result) error

func WriteHTML added in v0.3.1

func WriteHTML(w io.Writer, res *scanner.Result) error

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

func WriteJUnit(w io.Writer, version string, res *scanner.Result) error

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.

func WriteMarkdown added in v0.3.1

func WriteMarkdown(w io.Writer, res *scanner.Result)

WriteMarkdown renders res as a self-contained Markdown document.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL