Paul Dingemans
10/12/2023, 2:38 PM1.0.0
the rule blank-line-before-declaration
is no longer experimental and runs always in code style ktlint-official
.Johan
01/27/2025, 1:41 PMclass FooBar {
val foo2 = "foo2"
To
class FooBar {
val foo2 = "foo2"
Disabling this rule would allow
val foo3 = "foo3"
fun bar1() {
And that I do want to preventPaul Dingemans
02/15/2025, 1:45 PMfoo2
make sense, while no blank line is allowed before the closing brace of the class.
class FooBar {
val foo2 = "foo2"
}
Also see https://pinterest.github.io/ktlint/latest/faq/#can-a-new-toggle-be-added-to-optionally-enabledisable-format-code-in-a-particular-wayJohan
02/15/2025, 4:19 PMPaul Dingemans
02/15/2025, 7:29 PMJohan
02/15/2025, 8:01 PMJohan
02/15/2025, 8:01 PM