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§
- Data
Table - A columnar table of a rule’s findings across a project.
- Table
Row - One finding: where it is, the matched text, and the metavar bindings.
- Table
Summary - Roll-up metrics for a
DataTable.
Functions§
- data_
table - Run
ruleoverfilesin report-only mode and collect aDataTable— one row per match, with per-file and total counts. No edits are made.