Inspectopedia
 
2024.3

'switch' statement with too low of a branch density

Warning
New
Last modified: 03 December 2024

Reports switch statements or expressions with a too low ratio of switch labels to executable statements.

Such switch statements may be confusing and should probably be refactored.

Example:

Use the Minimum density of branches field to specify the allowed ratio of the switch labels to executable statements.