Output formats
| Format | Command | Intended use |
|---|---|---|
| Terminal | kaev check |
Interactive local review with automatic color. |
| Markdown | kaev report |
Detailed, shareable report. |
| JSON | kaev check --format json |
Stable machine-readable KAEV schema. |
| SARIF | kaev check --format sarif |
Code-scanning and security platforms. |
| JUnit XML | kaev check --format junit |
CI test-report systems. |
| GitHub | kaev check --format github |
GitHub Actions annotations. |
Examples
Section titled “Examples”kaev check --format json > kaev-result.jsonkaev check --format sarif > kaev.sarifkaev check --format junit > kaev-junit.xmlkaev check --format githubMachine-readable formats never contain ANSI color codes or progress messages. Operational errors are written to stderr.
JSON contract
Section titled “JSON contract”JSON output uses schemaVersion: 1 and contains:
kaevVersionandgeneratedAt.- A project fingerprint without the absolute project root or service URLs.
scoreswith Project Health, nullable Security Posture, and a partial-coverage flag.summarycounts for findings, files, and rule states.- Deterministically ordered
findings, source-freediagnostics, and per-rule status. display, which records the applied visibility filter without changing scores or summary totals.
Finding locations are one-based, project-relative POSIX paths on every operating system. Consumers should tolerate additional fields and newly introduced rule IDs within schema version 1.
SARIF, JUnit, and GitHub
Section titled “SARIF, JUnit, and GitHub”- SARIF is version 2.1.0 and is intended for code-scanning ingestion.
- JUnit represents checks as test cases, including pass, issue, not-applicable, skipped, and unavailable states.
- GitHub format writes workflow annotation commands suitable for GitHub Actions.
Use the process exit code for quality gates instead of parsing rendered text.
Markdown reports
Section titled “Markdown reports”Use kaev report to generate a timestamped Markdown file, or choose the output explicitly:
kaev report --output ./reports/kaev.mdKAEV does not generate PDF directly. Generate Markdown first and convert it separately if PDF is required.