Skip to main content

Module duplicates

Module duplicates 

Source
Expand description

Duplication result types exposed through the engine boundary.

Structs§

CloneFingerprintKey
Canonical identity for a clone group when assigning report-scoped handles.
CloneFingerprintSet
Report-scoped clone fingerprint assignment.

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 a discovered file set.
find_duplicates_cached
Run cached duplication detection inside the engine boundary.
find_duplicates_touching_files_with_defaults
Run focused duplication detection and include metadata about built-in ignored files.
find_duplicates_with_defaults
Run duplication detection and include metadata about built-in ignored files.
fingerprint_for_fragment
Compute the fingerprint directly from a representative source fragment.
group_refactoring_suggestion
Build a per-group ExtractFunction refactoring suggestion.
recompute_stats
Recompute duplication statistics after clone groups have been filtered.
refresh_clone_families
Refresh clone-family and mirrored-directory fields after clone groups change.
source_token_kinds_equivalent
Compare two JS/TS sources by duplicate-token kind sequence.

Type Aliases§

CloneGroup
CloneInstance
DefaultIgnoreSkips
DuplicationReport
DuplicationStats
RefactoringKind
RefactoringSuggestion