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.
DuplicationScope
The scope of one duplication run, as the surface resolved it.

Constants§

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

Functions§

apply_scope
Narrow a duplication report to the scope of the run.
apply_top
Keep only the n highest-ranked clone groups (--top).
clone_fingerprint
Compute a mode-independent normalized short content fingerprint for a clone group from all distinct instance token sequences.
dominant_identifier
Best-effort name for the extracted function, derived from the most frequent non-generic identifier in the representative fragment.
filter_to_workspaces
Keep only the clone groups with at least one instance under one of the workspace roots.
find_duplicates
Run duplication detection on a discovered file set.
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.
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.
refresh_scoped_report
Rebuild the fields that a scope filter invalidates: clone families, mirrored directories, statistics and the report order.
source_token_kinds_equivalent
Compare two JS/TS sources by duplicate-token kind sequence.

Type Aliases§

CloneGroup
Engine alias for fallow_types::duplicates::CloneGroup.
CloneGroupKind
Engine alias for fallow_types::duplicates::CloneGroupKind.
CloneInstance
Engine alias for fallow_types::duplicates::CloneInstance.
DefaultIgnoreSkips
Engine alias for fallow_types::duplicates::DefaultIgnoreSkips.
DuplicationReport
Engine alias for fallow_types::duplicates::DuplicationReport.
DuplicationStats
Engine alias for fallow_types::duplicates::DuplicationStats.
RefactoringKind
Engine alias for fallow_types::duplicates::RefactoringKind.
RefactoringSuggestion
Engine alias for fallow_types::duplicates::RefactoringSuggestion.