-
Notifications
You must be signed in to change notification settings - Fork 280
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
Conflict between new line before / after implicit and verticalMultilineAtDefinitionSite? #1362
Comments
Thanks for reporting! The two features were contributed separately so it could be that they don't play nicely together. |
@alexarchambault you have reported two issues:
the first issue should be solved by setting the second issue remains, and i will send in a patch to address it. |
If optin.configStyleArguments and/or newlines.danglingParentheses have been explicitly specified, incorporate them into the vertical multiline logic. Fixes scalameta#1362. Fixes scalameta#1539.
This will format "implicit" on the same line as the opening paren, if possible. It will also break after the "implicit" unless all parameters fit on one line. Fixes scalameta#1362.
This will format "implicit" on the same line as the opening paren, if possible. It will also break after the "implicit" unless all parameters fit on one line. Fixes scalameta#1362.
This will format "implicit" on the same line as the opening paren, if possible. It will also break after the "implicit" unless all parameters fit on one line. Fixes scalameta#1362.
This will format "implicit" on the same line as the opening paren, if possible. It will also break after the "implicit" unless all parameters fit on one line. Fixes scalameta#1362.
This will format "implicit" on the same line as the opening paren, if possible. It will also break after the "implicit" unless all parameters fit on one line. Fixes #1362.
If newlines.danglingParentheses is true, the current vertical multiline logic will apply. However, if the flag is false (the default), it will supersede the current logic and no dangling will occur. Fixes scalameta#1362.
If newlines.danglingParentheses is true, the current vertical multiline logic will apply. However, if the flag is false (the default), it will supersede the current logic and no dangling will occur. Fixes #1362.
Thanks a lot for having fixed that, @kitbellew! |
Steps
Given code like this:
Problem
Scalafmt formats code like this:
Expectation
I would like
to be left as-is, rather than changed to
Workaround
Setting
fixes that, but in turn, changes
)(implicit
to
)( implicit
(which I would like to avoid too).
The text was updated successfully, but these errors were encountered: