Skip to main content

Module clone_class

Module clone_class 

Source
Expand description

The clone classification vocabulary, shared by every analysis mode.

Classification is a property of a finding, not of the mode that produced it: a verbatim copy is a Type-1 clone whether the Fast engine matched it token-by-token or the Structural verifier scored it across dimensions. One enum for all modes keeps reports, storage and lineage comparable across modes; the names here are the identifiers the store and the JSON reports use.

Not every mode produces every class: the Fast engine reports no gapped (Type-3) clones, since it only matches identical normalized content.

Enums§

CloneClass
How closely a clone group’s members match.
CloneScope
What the members of a clone group are.