Skip to content

feat: add --output jsonl for machine-readable results#41

Merged
benner merged 3 commits into
mainfrom
feat/output-format
Apr 25, 2026
Merged

feat: add --output jsonl for machine-readable results#41
benner merged 3 commits into
mainfrom
feat/output-format

Conversation

@benner
Copy link
Copy Markdown
Owner

@benner benner commented Apr 25, 2026

Emits one JSON line per commit to stdout so scripts and CI pipelines
can parse check results without scraping human-readable stderr.

Schema: {"sha", "subject", "ok", "results": [{"check", "level", "message"}]}.
sha is null when reading from a file or stdin. Works for both single
commit and --range modes.

benner added 3 commits April 25, 2026 08:49
Result entries now carry the originating check name and the text
reporter prefixes each message with [check-name] so users can tell
at a glance which rule fired.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
No behaviour change — _report_text is identical to the old _report.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
Emits one JSON line per commit to stdout so scripts and CI pipelines
can parse check results without scraping human-readable stderr.

Schema: {"sha", "subject", "ok", "results": [{"check", "level", "message"}]}.
sha is null when reading from a file or stdin. Works for both single
commit and --range modes.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
@benner benner marked this pull request as ready for review April 25, 2026 07:06
@benner benner merged commit db1497e into main Apr 25, 2026
4 checks passed
@benner benner deleted the feat/output-format branch April 25, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant