Skip to main content

Module editor_duplicates

Module editor_duplicates 

Source

Modules§

families
tokenize

Structs§

CloneFamily
A clone family: a set of clone groups that share the same file set.
CloneFingerprintSet
Report-scoped clone fingerprint assignment.
CloneGroup
A group of code clones – the same (or normalized-equivalent) code appearing in multiple places.
CloneInstance
A single instance of duplicated code at a specific location.
DefaultIgnoreSkips
Human-format-only skipped-file stats for built-in duplicates ignores.
DuplicationReport
Overall duplication analysis report.
DuplicationStats
Aggregate duplication statistics.
MirroredDirectory
A detected mirrored directory pattern: two directory prefixes that contain identical files (e.g., src/ and deno/lib/).
RefactoringSuggestion
A refactoring suggestion for a clone family.

Enums§

RefactoringKind
The kind of refactoring suggested for a clone family.

Constants§

FINGERPRINT_PREFIX
Prefix marking a clone-group fingerprint addressable via --trace.

Functions§

clone_fingerprint
Compute the legacy short content fingerprint for a clone group from its instances.
dominant_identifier
Best-effort name for the extracted function, derived from the most frequent non-generic identifier in the representative fragment.
find_duplicates
Run duplication detection on the given files.
find_duplicates_cached
Run duplication detection with the persistent token cache enabled.
find_duplicates_cached_with_default_ignore_skips
Run cached duplication detection and return human-format sidecar metadata for files skipped by built-in duplicates ignores.
find_duplicates_in_project
Run duplication detection on a project directory using auto-discovered files.
find_duplicates_touching_files
Run duplication detection and only return clone groups touching focus_files.
find_duplicates_touching_files_cached
Run focused duplication detection with the persistent token cache enabled.
find_duplicates_touching_files_cached_with_default_ignore_skips
Run cached focused duplication detection and return human-format sidecar metadata for files skipped by built-in duplicates ignores.
find_duplicates_touching_files_with_default_ignore_skips
Run focused duplication detection and return human-format sidecar metadata for files skipped by built-in duplicates ignores.
find_duplicates_with_default_ignore_skips
Run duplication detection and return human-format sidecar metadata for files skipped by built-in duplicates ignores.
fingerprint_for_fragment
Compute the fingerprint directly from a representative source fragment.