Skip to main content

Module report

Module report 

Source
Expand description

Data tables — rules emit structured findings/metrics (#2837).

Adopted from OpenRewrite’s first-class data tables: a rule run can emit columnar findings + a metrics summary alongside (or instead of) diffs. This is report-only — building a table never edits anything — which is what inventory, impact analysis, and audit need.

The envelope is plain serde (Serialize), consistent with the rest of the --json surfaces; DataTable::to_json renders it.

Structs§

DataTable
A columnar table of a rule’s findings across a project.
TableRow
One finding: where it is, the matched text, and the metavar bindings.
TableSummary
Roll-up metrics for a DataTable.

Functions§

data_table
Run rule over files in report-only mode and collect a DataTable — one row per match, with per-file and total counts. No edits are made.