Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excluding Multi-line if/guard/while Conditions From Opening Brace Rule #365

Merged
merged 9 commits into from
Feb 3, 2016
Prev Previous commit
Added corrections for if and multi-line if to OpeningBraceRule.
  • Loading branch information
scottrhoyt committed Feb 3, 2016
commit a723e146b4d087e29a8bd2e6a8f5af9333b329b7
2 changes: 2 additions & 0 deletions Source/SwiftLintFramework/Rules/OpeningBraceRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public struct OpeningBraceRule: CorrectableRule, ConfigProviderRule {
"struct Parent {\n\tstruct Child {\n\t\tlet foo: Int\n\t}\n}\n",
"[].map(){ $0 }\n": "[].map() { $0 }\n",
"[].map( { })\n": "[].map({ })\n",
"if a == b{ }\n": "if a == b { }\n",
"if\n\tlet a = b,\n\tlet c = d{ }\n": "if\n\tlet a = b,\n\tlet c = d { }\n"
]
)

Expand Down