terminal. Use --format to select a format and --output to write to a file instead of stdout.
~/.codegate/config.json:
Formats
- terminal
- json
- sarif
- markdown
- html
The default format. Renders an interactive TUI (terminal user interface) when a TTY is available. The TUI presents findings grouped by severity, supports keyboard navigation, and shows inline remediation guidance.Disable the TUI to get plain text output suitable for log capture:Add The
--verbose for extended output including additional finding fields:terminal format is always used by codegate run. Machine-readable formats are only available from codegate scan.Format comparison
| Format | Use case | Interactive | Machine-readable | File output |
|---|---|---|---|---|
terminal | Local development | Yes (TUI) | No | No |
json | Pipelines and tooling | No | Yes | Optional |
sarif | GitHub Code Scanning | No | Yes | Recommended |
markdown | PR comments, wikis | No | No | Optional |
html | Shareable reports | No | No | Optional |
Exit codes
All formats produce the same exit code regardless of which format is selected.| Code | Meaning |
|---|---|
0 | No unsuppressed findings. |
1 | Findings exist below the configured severity_threshold. |
2 | Findings at or above the configured severity_threshold. |
3 | Scanner or runtime error. |