Pattern: Empty switch
statement
Issue: -
Checks for empty switch statements. Empty switch statements are confusing and serve no purpose.
Here is an example of code that produces a violation:
def someMethod() {
switch(someVariable) {
// empty
}
}