Skip to main content

EditorDuplicationStats

Type Alias EditorDuplicationStats 

Source
pub type EditorDuplicationStats = DuplicationStats;
Expand description

Editor-boundary alias for aggregate duplication statistics.

Aliased Type§

pub struct EditorDuplicationStats {
Show 13 fields pub total_files: usize, pub files_with_clones: usize, pub total_lines: usize, pub duplicated_lines: usize, pub total_tokens: usize, pub duplicated_tokens: usize, pub clone_groups: usize, pub clone_families: usize, pub clone_instances: usize, pub duplication_percentage: f64, pub clone_groups_below_min_occurrences: usize, pub clone_groups_ignored: usize, pub near_candidates_skipped: usize,
}

Fields§

§total_files: usize

Total files analyzed.

§files_with_clones: usize

Files containing at least one clone instance.

§total_lines: usize

Total lines across all analyzed files.

§duplicated_lines: usize

Lines that are part of at least one clone.

§total_tokens: usize

Total tokens across all analyzed files.

§duplicated_tokens: usize

Tokens in redundant clone copies, excluding one retained copy per group.

§clone_groups: usize

Number of clone groups the scoped corpus contains after filtering. --top does not change it; compare it with clone_groups_shown on the envelope to see how much of the corpus the array carries.

§clone_families: usize

Number of clone families the scoped corpus contains after filtering. --top truncates clone_families[] along with clone_groups[] but does not change this counter; compare it with clone_families_shown on the envelope to see how much of the corpus the array carries.

§clone_instances: usize

Total clone instances across the scoped corpus after filtering. --top does not change it.

§duplication_percentage: f64

Percentage of duplicated lines (0.0 to 100.0). --top does not change this scoped corpus metric.

§clone_groups_below_min_occurrences: usize

Number of clone groups hidden by duplicates.minOccurrences. Absent (or 0) when the filter is at its default of 2 and nothing was hidden. This counter covers only the minimum-occurrence filter.

§clone_groups_ignored: usize

Number of clone groups hidden by duplicates.ignoredClones.

§near_candidates_skipped: usize

Near-miss candidate comparisons skipped by bounded-work limits.