Skip to main content

Module revisions

Module revisions 

Expand description

revisions analysis — file → revision count. Code-maat parity output: (entity, n-revs). See spec §1.1 (“authors and revisions are addressable standalone”).

Research basis: see docs/research-foundations.md entry “revisions” (Nagappan & Ball, ICSE 2005 — relative churn predicts defect density).

Constants§

SQL_RAW
Per-file revision count, gated on --min-revs and capped by --rows. Bound values: min_revs, row_limit (i64::MAX = unlimited).

Functions§

build_inlined_sql
Returns the revisions SQL with ? placeholders inlined and the source table swapped in. Used by the Parquet writer (DuckDB COPY can’t accept bind parameters). Sharing the formula with the live run_revisions path eliminates silent-drift risk.
run_revisions