-
Notifications
You must be signed in to change notification settings - Fork 512
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
Empty line before closing function parenthesis #1224
Comments
The same hapens with constructors: class A(
val a: String,
val b: String
) or with annotations: @Component(
modules = [
A::class
],
dependencies = [
B::class,
]
) |
This should be marked as an enhancement. Currently no rule exists that prevent blank lines in elements of type list: For remaining list types in the ElementType class it needs to be investigated the same applies to this type of element: |
There is no rule for this. Also I doubt that this is a violation of the Kotlin Coding conventions or Android Kotlin Style Guide. The latter one is a bit more explicit about vertical whitespace but does not seem to encourage or discourage it. But, I think that a blank line between the opening parenthesis and the first parameter as well as blank line between the last parameter and the closing parenthesis should be seen as redundant. Blank line between parameters can be useful for grouping related parameters. As the style guides do not explicitly encourage/discourage blank lines in the argument lists, this behavior will only be added to the new code style ktlint_official which is to be released in a future version. |
Blank lines betwee |
Expected Behavior
The empty line between the last argument and the closing parenthesis should not be allowed.
Observed Behavior
It is allowed
Your Environment
The text was updated successfully, but these errors were encountered: