Inspectopedia
 
2024.3

Fallthrough in 'switch' statement

Warning
Reliability
Last modified: 03 December 2024

Reports fallthrough in switch statements. While occasionally useful, fallthrough is often unintended, and may lead to surprising bugs.

Example: