Skip to content

Files

Latest commit

 

History

History
22 lines (15 loc) · 530 Bytes

SpaceAfterSwitch.md

File metadata and controls

22 lines (15 loc) · 530 Bytes

Pattern: Malformed space after switch

Issue: -

Description

Checks that there is exactly one space (blank) after the switch keyword and before the opening parenthesis.

Examples of violations:

switch(x) {                                 // violation
    case 1: println 'one'
}
switch  (x) {                               // violation
    case 1: println 'one'
}

Further Reading