6.2.6.1. C#CloneDetection¶
Find clones in C# files
Possible Messages
This rule has no predefined messages.
Options¶
This rule shares the following common options: excludes, includes, justification_checker, post_processing, provider, severity
The following places define options that affect this rule: CloneDetections, Analysis-GlobalOptions
advanced¶
Options that are normally not required
advanced.exclude_nodes : set[typing.Any] =
C# syntax node types that are to be excluded from the hashing, even if e.g. a parent class has been included for subtree comparison.set()
advanced.gxl_file : bauhaus.analysis.config.LayerRelativePath | None =
Output found clones as GXL file.None
advanced.include_nodes : set[typing.Any] | None =
C# syntax node types that are to be included in the hashing. Include all if empty.{None}
advanced.pre_min_lines : int =
Minimum length in lines during hashing phase.2
advanced.pre_min_weight : int =
Minimum weight in nodes during hashing phase.2
advanced.stats_file : bauhaus.analysis.config.LayerRelativePath | None =
Output statistics of found clones as CSV file.None
max_density¶
max_density : int = 2147483647
min_density¶
min_density : int = 0
min_lines¶
min_lines : int = 30
min_weight¶
min_weight : int = 30
no_sequences¶
no_sequences : bool = False
pre_excludes¶
pre_excludes : set[bauhaus.analysis.config.GlobPattern] = set()
*/MemMap.h).
type3_similarity¶
type3_similarity : int = 80