Metric-MaximumExtendedNesting

Maximum Extended Nesting

Required inputs: RFG

Counts the maximum nesting level of syntactic levels inside a routine.

Metric.Maximum_Extended_Nesting differs from Metric.Maximum_Nesting by its treatment of else if-statements: Metric.Maximum_Extended_Nesting increases the nesting level by one for each else if-statement.

Possible Messages

This rule has no predefined messages.

Options

display_name

display_name : str | None = 'Maximum Extended Nesting'

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

max_value

max_value : int | None = None

Maximum allowed value. None if unlimited.
 

min_value

min_value : int | None = None

Minimum allowed value. None if unlimited.
 

rfg_metric_name

rfg_metric_name : str = 'Metric.Maximum_Extended_Nesting'

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