Skip to main content

find_duplicates

Function find_duplicates 

Source
pub fn find_duplicates(
    root: &Path,
    files: &[DiscoveredFile],
    config: &DuplicatesConfig,
) -> DuplicationReport
Expand description

Run duplication detection on the given files.

This is the main entry point for the duplication analysis. It:

  1. Reads and tokenizes all source files in parallel
  2. Normalizes tokens according to the detection mode
  3. Runs suffix array + LCP clone detection
  4. Groups clone instances into families with refactoring suggestions
  5. Applies inline suppression filters