Metric-CloneRatio

Clone Ratio

The ratio between cloned lines and the total number of lines of code.

Possible Messages

This rule has no predefined messages.

Options

clone_detection_rulename

clone_detection_rulename : str = 'C++CloneDetection'

Rulename of the CloneDetection rule from which the clone ratio is computed. Note that the rule named here must be explicitly activated. If AxivionC#Frontend is used this defaults to 'C#CloneDetection'; if AxivionRustFrontend is used this defaults to 'RustCloneDetection' if not configured otherwise.
 

display_name

display_name : str | None = 'Clone Ratio'

Description of the metric shown in the dashboard. If None, rfg_metric_name is used.
 

max_value

max_value : float | None = 25.0

Maximum allowed value. None if unlimited.
 

min_value

min_value : float | None = 0.0

Minimum allowed value. None if unlimited.
 

rfg_metric_name

rfg_metric_name : str = 'Metric.Clone_Ratio'

Name of the node attribute storing the metric value in the RFG.