Skip to main content

apply_top

Function apply_top 

Source
pub fn apply_top(report: &mut DuplicationReport, n: usize, root: &Path)
Expand description

Keep only the n highest-ranked clone groups (--top).

stats keeps describing the corpus the run measured. Truncation is a presentation choice, so rewriting clone_groups or clone_instances from the truncated array would put two scopes in one object next to the untouched files_with_clones and duplication_percentage. Consumers read the shown and omitted split from DuplicationReport::clone_groups_shown and clone_groups_omitted.