MobDev.SecurityScan.Formatter (mob_dev v0.3.35)

Copy Markdown View Source

Render a Report for human or machine consumers.

The formatter never raises; missing optional fields render as blank, not crashes. Callers control output destination (IO, File.write/2, etc.).

Summary

Functions

Render the report as JSON-encodable data.

Render the report as a Markdown document for --write-report PATH. Designed to be checked into a repo and diffed across runs as patch-lag evidence — fewer findings over time = receipts.

Render the report as ANSI-coloured terminal text.

Functions

json(report)

Render the report as JSON-encodable data.

markdown(report)

@spec markdown(MobDev.SecurityScan.Report.t()) :: String.t()

Render the report as a Markdown document for --write-report PATH. Designed to be checked into a repo and diffed across runs as patch-lag evidence — fewer findings over time = receipts.

terminal(report)

@spec terminal(MobDev.SecurityScan.Report.t()) :: String.t()

Render the report as ANSI-coloured terminal text.