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

Expand (or duplicate) closure end indentation rule for other cases #1435

Open
keith opened this Issue Apr 14, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@keith
Collaborator

keith commented Apr 14, 2017

Currently the closure_end_indentation rule is really awesome for cases like this:

foo
    .bar {
    } // this is enforced

I think it might be nice to spread this to other identifiers, such as this:

foo(
    bar
) // this should be enforced to be here

And also arrays:

let foo = [
    1, 2, 3,
] // this has to be here

etc.

Thoughts?

@keith keith added the rule-request label Apr 14, 2017

@ZevEisenberg

This comment has been minimized.

Show comment
Hide comment
@ZevEisenberg

ZevEisenberg Apr 24, 2017

Probably worth duping as a Radar, since it's kind of ridiculous that these aren't the Xcode defaults, IMHO.

ZevEisenberg commented Apr 24, 2017

Probably worth duping as a Radar, since it's kind of ridiculous that these aren't the Xcode defaults, IMHO.

@jpsim

This comment has been minimized.

Show comment
Hide comment
@jpsim

jpsim May 30, 2017

Collaborator

Has anyone filed a radar or a swift bug for this?

Collaborator

jpsim commented May 30, 2017

Has anyone filed a radar or a swift bug for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment