-
Couldn't load subscription status.
- Fork 0
statement_position
Ian Applebaum edited this page Jun 13, 2020
·
1 revision
Else and catch should be on the same line, one space after the previous declaration.
- Identifier: statement_position
- Enabled by default: Enabled
- Supports autocorrection: Yes
- Kind: style
- Analyzer rule: No
- Minimum Swift compiler version: 3.0.0
- Default configuration: (statement_mode) default, (severity) warning
} else if {} else {} catch {"}else{"struct A { let catchphrase: Int }
let a = A(
catchphrase: 0
)struct A { let `catch`: Int }
let a = A(
`catch`: 0
)↓}else if {↓} else {↓}
catch {↓}
catch {