Skip to main content

evaluate_clone_gate

Function evaluate_clone_gate 

pub fn evaluate_clone_gate(
    thresholds: &Thresholds,
    db: &FactsDb,
) -> Result<Vec<GateViolation>>
Expand description

Evaluate the disallow_clone_type_1 gate by counting Type-1 clone families (similarity = 1.0) in the fact store. When the gate is off this is a noop; when on, every distinct clone group of similarity 1.0 surfaces as one violation row.

§Errors

Returns crate::CodeLoreError::Analysis on DuckDB errors.