Format matrix
| Format | mehen metrics | mehen diff | mehen top-offenders |
|---|---|---|---|
json | ✓ (default) | ✓ | ✓ |
markdown | ✓ | ✓ (GitHub-flavored) | ✓ (default) |
yaml | ✓ | — | — |
toml | ✓ | — | — |
Choosing a format
json— canonical machine shape. Use it when piping into a CI script orjq.markdown— formehen diff, this is GitHub-flavored Markdown for the sticky comment posted by the GitHub Action. Formehen metricsandmehen top-offenders, it’s a human-friendly summary.yaml/toml— convenient for committing to a repo or piping into config-aware tooling. Available onmehen metricsonly.
JSON shape (mehen metrics)
contributions is omitted when the selected profile disables evidence or the analyzer has none.
Entries are deterministically ordered by source span. amount is the signed, weighted number of
points the source construct contributes to metric. For example, a SQL DROP contribution is:
markdown: block with the
documentation suite.
JSON shape (mehen diff)
Pretty-printing
mehen metrics --pretty indents JSON output. The other commands always emit single-pass output for
deterministic piping.