6.2.6. CloneDetections

Nested Rules

C#CloneDetection

Find clones in C# files

C++CloneDetection

Find clones in C and C++ files

QMLCloneDetection

Find clones in QML files

RustCloneDetection

Find clones in Rust files

6.2.6.5. Options

max_density

max_density : int = 2147483647

Maximum density (weight/lines) of clone pairs to report in percent.
 

min_density

min_density : int = 0

Minimum density (weight/lines) of clone pairs to report in percent.
 

min_lines

min_lines : int = 30

Minimum length in lines of clone pairs to report.
 

min_weight

min_weight : int = 30

Minimum weight in nodes of clone pairs to report.
 

no_sequences

no_sequences : bool = False

Do not report cloned sequences.
 

pre_excludes

pre_excludes : set[bauhaus.analysis.config.GlobPattern] = set()

Set of globbing patterns of directories/filenames to exclude in early hashing phase. No clone pair with either left or right side matching those patterns is ever reported (e.g. */MemMap.h).
 

type3_similarity

type3_similarity : int = 80

Minimum similarity of type-3 clones to report in percent.