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

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

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

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

keith opened this issue Apr 14, 2017 · 2 comments
Labels
rule-request Requests for a new rules.

Comments

@keith
Copy link
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 Requests for a new rules. label Apr 14, 2017
@ZevEisenberg
Copy link
Contributor

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

@jpsim
Copy link
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
Labels
rule-request Requests for a new rules.
Projects
None yet
Development

No branches or pull requests

3 participants