Metric-HIS.STMT

HIS STMT metric: Number of statements

Required inputs: RFG

Count of all statements in routine.

Possible Messages

This rule has no predefined messages.

Options

alias_name

alias_name : str = 'Metric.HIS.STMT'

Name under which the metric will be reported. In the RFG, a metric with this value is created, too (copied from original metric).
 

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 = 'HIS STMT'

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

max_value

max_value : int | None = 50

Maximum allowed value. None if unlimited.
 

min_value

min_value : int | None = 1

Minimum allowed value. None if unlimited.
 

rfg_metric_name

rfg_metric_name : OriginalMetrics = 'Metric.Number_Of_Statements'

Name of the node attribute storing the metric value in the RFG. The name of the RFG node attribute of the original metric. This name is searched in the RFG.
 

Option Types

These types are used by options listed above:

OriginalMetrics

An enumeration.
 
  • Metric.Number_Of_Statements