Skip to main content

Module duplicates

Module duplicates 

Source
Expand description

Duplication result types exposed through the engine boundary.

Structs§

CarriedCounters
Counters that a statistics computation copies and does not derive from the clone groups.
CloneCoverage
Accumulates the clone groups of one scope into duplication statistics.
CloneFingerprintKey
Canonical identity for a clone group when assigning report-scoped handles.
CloneFingerprintSet
Report-scoped clone fingerprint assignment.
CorpusTotals
Size of the corpus that a duplication run measured.
DuplicationScope
The scope of one duplication run, as the surface resolved it.

Constants§

DUPES_DEFAULT_IGNORES
Built-in duplicates ignores for generated framework, tool, and test output.
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 in the workspace scope.
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.
refresh_clone_families
Refresh clone-family and mirrored-directory fields after clone groups change.
source_token_kinds_equivalent
Compare JS/TS sources for audit-safe reuse of the current analysis at base.

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.
RefactoringSuggestion
Engine alias for fallow_types::duplicates::RefactoringSuggestion.