Inspectopedia
 
2024.3

Nested switch statement

Warning
Reliability
New
Last modified: 03 December 2024

Reports switch statements that are nested inside other switch statements. Such nested switch statements are confusing, and may result in unexpected behaviour.

Example: