-
Notifications
You must be signed in to change notification settings - Fork 506
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
Place class/fun parameters onto the same line when below max_line_length #188
Comments
Parameterless functions should also be reformatted to be single line.
All of this also affects constructors. |
(somewhat) related to #251 |
shyiko
changed the title
Unwrap parameters if short enough
Place class/fun parameters onto the same line when below max_line_length
Feb 12, 2019
Code samples below are already fixed in a version prior to 0.43.2
Code sample below will be fixed by + PR #1331
|
2 tasks
Will be covered by #1341 which is in progress. Completion is to be expected in Ktlint 0.46.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you got something like the following ktlint should unwrap the parameters of test2, test3 and test4 because they fit in one line.
The current behavior in 0.21.0 is that test1 and test2 stay like they are. test3 and test4 are reformatted to look like test2.
The text was updated successfully, but these errors were encountered: