Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 446 Bytes

switch-final-break.md

File metadata and controls

13 lines (7 loc) · 446 Bytes

Pattern: Malformed final clause in switch

Issue: -

Description

Checks whether the final clause of a switch statement ends in break;.

If no options are passed, a final break; is forbidden. If the always option is passed this will require a break; to always be present unless control flow is escaped in some other way.

Further Reading