Skip to content
poly-crap
Esc
↑↓navigate↵open⌘Jpreview
On this page

JSON and SARIF

Machine-readable reports for baselines, scripts, and GitHub code scanning.

JSON

--format json writes every function, not just the failures, so a report can serve as a baseline. Each entry carries the fields the table shows plus end_line, coverage_basis (line, statement, or null), and uncovered as a list of {start, end} ranges. A diagnostics object counts files and lists up to twenty warnings. The document names its schema, report-v1.json, and a baseline comparison uses delta-v1.json.

SARIF

--format sarif writes SARIF 2.1.0 with one result per function over the threshold, under the rule poly-crap/crap-threshold, for GitHub code scanning and editors that read SARIF. It cannot be combined with --baseline. CI recipes shows how to upload it.

Last updated on September 6, 2026

Was this page helpful?