Skip to main content

Module duplicates

Module duplicates 

Source
Expand description

Duplication result types exposed through the engine boundary.

Structs§

CloneFingerprintSet
Report-scoped clone fingerprint assignment exposed through the engine boundary.

Constants§

FINGERPRINT_PREFIX

Functions§

clone_fingerprint
Compute the stable fingerprint for a clone group.
dominant_identifier
Return the best-effort dominant identifier for a clone group.
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 a clone fingerprint directly from a representative source fragment.
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