I want to change rule only for else, moving else to next line, for example:
if true {
}
else {
}
Can I do it with configuration file?
@artemnovichkov Try use the uncuddled_else configuration option.
So use the following in your .swiftlint.yml:
statement_position:
statement_mode: uncuddled_else
It works, thanks, @aamctustwo!
Most helpful comment
@artemnovichkov Try use the
uncuddled_elseconfiguration option.So use the following in your
.swiftlint.yml:See: https://github.com/realm/SwiftLint/blob/5f442adf5b7725ac2553668f7db925622c821094/Source/SwiftLintFramework/Rules/StatementPositionRule.swift#L45-L72