-
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
no-blank-line-before-rbrace should not apply before class closing right brace #317
Comments
Agreed on this!
Perhaps someone can help us write a custom rule for this? I just found out about ktlint last week and I'm loving it (so thank you for all maintainers/contributors) but I really feel uncomfortable when the last function's closing bracket and the class's closing bracket has no newline between them. :) |
This rule is included in ktlint-standard-ruleset for "consistency reasons". |
#65
no-blank-line-before-rbrace
should not apply when closing a class/object/enum/inteface etcRBrace.kt:6:1: Unexpected blank line(s) before "}" (no-blank-line-before-rbrace)
You can see in the above screenshot that the
no-blank-line-before-rbrace
before the class is closed this does not make sense and should be valid.Can a change to the rule be applied?
The text was updated successfully, but these errors were encountered: