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: usizeTotal files analyzed.
files_with_clones: usizeFiles containing at least one clone instance.
total_lines: usizeTotal lines across all analyzed files.
duplicated_lines: usizeLines that are part of at least one clone.
total_tokens: usizeTotal tokens across all analyzed files.
duplicated_tokens: usizeTokens in redundant clone copies, excluding one retained copy per group.
clone_groups: usizeNumber 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: usizeNumber 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: usizeTotal clone instances across the scoped corpus after filtering.
--top does not change it.
duplication_percentage: f64Percentage of duplicated lines (0.0 to 100.0). --top does not change
this scoped corpus metric.
clone_groups_below_min_occurrences: usizeNumber 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: usizeNumber of clone groups hidden by duplicates.ignoredClones.
near_candidates_skipped: usizeNear-miss candidate comparisons skipped by bounded-work limits.