Skip to content

Commit 9e7deb5

Browse files
committed
[lint] disable opening_brace for multiline readability
* This rule `opening_brace` declares opening braces should be on the same line as the declaration * However for multiline if / let statements, it makes it harder to read: if let blah = blah, let foo = blah.foo { // do something, less readable } if let blah = blah, let foo = blah.foo { // do something, more readable } * See linked PR for an upcoming option, so we can re-enable this rule
1 parent caee127 commit 9e7deb5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.swiftlint.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
line_length: 150
1+
line_length: 150
2+
disabled_rules:
3+
# Track https://github.com/realm/SwiftLint/pull/5521
4+
- opening_brace

0 commit comments

Comments
 (0)