Pattern: Fall-through in switch
statement
Issue: -
Fall-throughs should be avoided.
Examples of correct code:
switch foo {
case .bar, .bar2, .bar3:
something()
}
Examples of incorrect code:
switch foo {
case .bar:
↓fallthrough
case .bar2:
something()
}