-
Notifications
You must be signed in to change notification settings - Fork 509
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
Max line length rule is enforced but auto-formatting isn't supported? #96
Comments
Hi @aaronhe42. You're right, right now |
Is |
@shyiko do you have have plans to support this formatting? I gave the code a little look and it seems like most of the work is already done for this in the |
Hi @ntsim. No reasons other than not enough time :) If you send a PR I'd gladly merge it in. |
…eded This change applies additional formatting rules when `max_line_length` is exceeded by a function or class declaration due to a long parameter list. It will also apply the formatting for nested declarations. Related issues: pinterest#96
This change applies `parameter-list-wrapping` and its associated formatting when `max_line_length` is exceeded by a function or class declaration due to its parameter list being too long. It will also apply for nested function declarations. Related issues: pinterest#96
Resolves pinterest#96 This commit applies `parameter-list-wrapping` and its associated linting/formatting when `max_line_length` is exceeded by a function or class declaration due to its parameter list being too long. It will also apply for nested function declarations.
Resolves pinterest#96 This commit applies `parameter-list-wrapping` and its associated linting/formatting when `max_line_length` is exceeded by a function or class declaration due to its parameter list being too long. It will also apply for nested function declarations.
Resolves pinterest#96 This commit applies `parameter-list-wrapping` and its associated linting/formatting when `max_line_length` is exceeded by a function or class declaration due to its parameter list being too long. It will also apply for nested function declarations.
It's cool
ktlint
can honormax_line_length
in the.editorconfig
file, but the auto-formatting doesn't seem to be supported?For example, if I have this
Person.kt
file:Then when I do
ktlint -F Person.kt
, it would just complainExceeded max line length (120)
without formatting it.The text was updated successfully, but these errors were encountered: