Number of nested state machines#

Number of nested state machines

Description#

Number of nested state machines.

Computation#

The metric uses a recursive depth-first algorithm to count the maximum number of nested state machines. The rule traverses nested conditional blocks to look for enclosed state machines.

A state machine with no child state machine has a depth of 1.

Customization#

N/A.