You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
object GiveMeSomeBreathingSpace {
fun lastFunction() {
println("Can you breathe now?")
}
}
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".
That being said, ability to disable rules on per-file basis is coming in #208.
#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: