-
Couldn't load subscription status.
- Fork 0
fallthrough
Ian Applebaum edited this page Jun 13, 2020
·
1 revision
Fallthrough should be avoided.
- Identifier: fallthrough
- Enabled by default: Disabled
- Supports autocorrection: No
- Kind: idiomatic
- Analyzer rule: No
- Minimum Swift compiler version: 3.0.0
- Default configuration: warning
switch foo {
case .bar, .bar2, .bar3:
something()
}switch foo {
case .bar:
↓fallthrough
case .bar2:
something()
}