Skip to main content

Module duplicates

Module duplicates 

Source
Expand description

Code duplication / clone detection module.

This module implements suffix array + LCP based clone detection for JavaScript/TypeScript source files. It supports multiple detection modes from strict (exact matches only) to semantic (structure-aware matching that ignores identifier names and literal values).

Re-exports§

pub use types::CloneGroup;
pub use types::CloneInstance;
pub use types::DetectionMode;
pub use types::DuplicatesConfig;
pub use types::DuplicationReport;
pub use types::DuplicationStats;

Modules§

detect
Suffix Array + LCP based clone detection engine.
normalize
tokenize
types

Functions§

find_duplicates
Run duplication detection on the given files.
find_duplicates_in_project
Run duplication detection on a project directory using auto-discovered files.