-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Possible closure_end_indentation rule issue #2121
Comments
erichoracek
added a commit
to erichoracek/SwiftLint
that referenced
this issue
Apr 2, 2018
I agree with this, I'd consider the existing behavior to be a bug and the correct way to address is to fix the existing behavior, no need to create a new rule or configuration point. |
erichoracek
added a commit
to erichoracek/SwiftLint
that referenced
this issue
Apr 30, 2018
erichoracek
added a commit
to erichoracek/SwiftLint
that referenced
this issue
May 5, 2018
erichoracek
added a commit
to erichoracek/SwiftLint
that referenced
this issue
May 6, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New Issue Checklist
Rule issue
I'm wondering whether the following code should be triggering the
closure_end_indentation
rule to fail (it currently doesn't):To me, this reads as a violation of the rule: since the closure's opening brace is on a line with one level of indentation, it seems like the closing brace should have the same level of indentation. The rule reads as follows:
My assumption from reading the rule is that the following code would satisfy it:
From this, it would appear that currently, the rule treats "the line that started it" as the start of the function declaration, rather than the line on which the opening brace is located.
What do you think? Thanks in advance! cc @marcelofabri
The text was updated successfully, but these errors were encountered: