Skip to content

report

Render a human-readable (or CI-readable) report from a scan.

Synopsis

archora report [path] [--format md|html|junit|json] [--base <file>] [options]

Options

OptionDefaultMeaning
--format <fmt>mdOne of md (alias markdown), html, junit, json.
--output, -o <file>Write report to file. Otherwise printed to stdout.
--base <file>Baseline snapshot. Currently affects only the Markdown format.
--quietSuppress the "Wrote …" line on stderr.

Formats

FormatBest forNotes
mdPR comments, team chats, GitHub issuesIf --base is supplied, includes a "What changed" section.
htmlSelf-contained artifact for archivingSingle file, no external assets.
junitCI test reporters (GitLab, Jenkins, GitHub)Each cycle / layer violation becomes a <testcase failure>.
jsonSame as analyze outputIdentical to archora analyze JSON.

Examples

bash
# Markdown for a PR comment
archora report . --format md -o report.md

# HTML you can open locally or attach to a build
archora report . --format html -o report.html

# JUnit for GitHub's "Tests" tab via dorny/test-reporter
archora report . --format junit -o reports/archora.xml

# Markdown that diffs against a stored baseline
archora report . --format md --base baseline.json -o report.md

Pairing with check

report doesn't fail the build — it always exits 0 (or 2 on bad invocation). Pair it with check when you want to both publish a nice report and fail the build:

bash
archora report . --format md -o report.md --quiet
archora check . --fail-on grade:D --fail-on cycles:0