Metric-NumberOfStatements

Number of Statements

Required inputs: RFG

Count of all statements in routine.

Possible Messages

This rule has no predefined messages.

Options

allow_empty_constructor

allow_empty_constructor : bool = False

Do not treat an empty constructor as violation.
 

allow_empty_destructor

allow_empty_destructor : bool = False

Do not treat an empty destructor as violation.
 

display_name

display_name : str | None = 'Number of Statements'

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

max_value

max_value : int | None = 1000

Maximum allowed value. None if unlimited.
 

min_value

min_value : int | None = 0

Minimum allowed value. None if unlimited.
 

rfg_metric_name

rfg_metric_name : str = 'Metric.Number_Of_Statements'

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