Skip to main content

run_clone_summary

Function run_clone_summary 

pub fn run_clone_summary(db: &FactsDb) -> Result<Vec<CloneSummary>>
Expand description

Per-file clone-group counts from the clones table. Empty result when no clone groups exist (small repo, no Tier-1 sources, or min_clone_node_count filtered everything out at ingest time). One row per path that appears in ≥ 1 clone family — files with zero clone groups are dropped so the payload stays compact.

§Errors

Returns CodeLoreError::Analysis on any DuckDB failure.