Skip to main content

DuplicationStats

Type Alias DuplicationStats 

Source
pub type DuplicationStats = DuplicationStats;
Expand description

Aliased Type§

pub struct DuplicationStats {
    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_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 in the reported clone_groups[] array after filtering and optional --top truncation.

§clone_instances: usize

Total clone instances across all reported groups after filtering and optional --top truncation.

§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.