Inspectopedia
 
2024.3

Missing 'break' statement

Info
New
Last modified: 03 December 2024

Reports the case clauses in switch statements that do not end with a break or a return statement.

If a case clause does not end with break or return, its execution can unintentionally fall through the next case.