Metric-MaximumNesting¶
Maximum Nesting
Required inputs: RFG
Counts the maximum nesting level of syntactic levels inside a routine.
Metric.Maximum_Nesting differs from Metric.Maximum_Extended_Nesting by its treatment of else if-statements: Metric.Maximum_Nesting does not increase the nesting level by one for each else if-statement.
Possible Messages
This rule has no predefined messages.
Options¶
This rule shares the following common options: exclude_messages_in_system_headers, excludes, includes, justification_checker, post_processing, provider, severity
This rule shares the following common metric options: base_view_name, excluded_node_types, hierarchy_edge_name, hierarchy_view_name, propagate, report_all_values, report_propagated_values
The following places define options that affect this rule: Analysis-GlobalOptions
display_name¶
display_name : str | None = 'Maximum Nesting'
max_value¶
max_value : int | None = 7
min_value¶
min_value : int | None = 0
rfg_metric_name¶
rfg_metric_name : str = 'Metric.Maximum_Nesting'