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

Investigate removing PreserveDanglingClosedParenthesis #8

Closed
daniel-trinh opened this issue Feb 5, 2014 · 0 comments
Closed

Investigate removing PreserveDanglingClosedParenthesis #8

daniel-trinh opened this issue Feb 5, 2014 · 0 comments

Comments

@daniel-trinh
Copy link
Owner

If possible, it would be more convenient to follow a simple rule on whether
or not to place dangling parentheses on a newline or not: If the arguments or parameters are multi line, force a dangling parenthesis. If they are single line, place them on the same line.

This would most likely be implemented as part of #7.

Examples:

def something(
  a: Int,
  b: String, 
  c: Boolean)(
  d: Int,
  e: String, 
  f: Boolean)

becomes

def something(
  a: Int,
  b: String, 
  c: Boolean
)(
  d: Int,
  e: String, 
  f: Boolean
)

And something like this

A(
  B(a, b, c
  ),
  C(b, c, d
  ))

Becomes this

A(
  B(a, b, c),
  C(b, c, d)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant