Render a Report for human or machine consumers.
terminal/1— pretty ANSI-coloured output formix mob.security_scanjson/1— machine-readable for--jsonmarkdown/1— for--write-report SECURITY_SCAN.md
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
@spec json(MobDev.SecurityScan.Report.t()) :: String.t()
Render the report as JSON-encodable data.
@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.
@spec terminal(MobDev.SecurityScan.Report.t()) :: String.t()
Render the report as ANSI-coloured terminal text.