KT-24750 Blank line after class header formatter should use user setting

This commit is contained in:
Sinan Kozak
2020-03-25 19:58:43 +03:00
committed by Dmitry Gridin
parent e6f527f1d0
commit 3f8ffb5ea7
6 changed files with 162 additions and 3 deletions
@@ -1,23 +1,46 @@
class Foo {
fun bar() {
}
}
object Bar {
fun xyzzy() {
}
}
object BarS {
fun xyzzy() {}
}
val f = object {
fun foo() {}
}
class FooCO {
fun bar() {
}
companion object {
fun foo() {}
}
}
class FooM
: IFoo {
fun bar()
}
class FooN : IFoo {
fun bar()
}
class FooC(
val x: String
) {
@@ -28,6 +51,7 @@ class FooC(
enum class Foo { Bar, Baz }
class Foo {
fun bar() {}
}
+15
View File
@@ -8,15 +8,30 @@ object Bar {
}
}
object BarS { fun xyzzy() {} }
val f = object {
fun foo() {}
}
class FooCO {
fun bar() {
}
companion object {
fun foo() {}
}
}
class FooM
: IFoo {
fun bar()
}
class FooN : IFoo {
fun bar()
}
class FooC(
val x: String
) {
@@ -0,0 +1,67 @@
class Foo {
fun bar() {
}
}
object Bar {
fun xyzzy() {
}
}
object BarS {
fun xyzzy() {}
}
val f = object {
fun foo() {}
}
class FooCO {
fun bar() {
}
companion object {
fun foo() {}
}
}
class FooM
: IFoo {
fun bar()
}
class FooN : IFoo {
fun bar()
}
class FooC(
val x: String
) {
fun bar()
}
enum class Foo { Bar, Baz }
class Foo {
fun bar() {}
}
// SET_INT: BLANK_LINES_AFTER_CLASS_HEADER = 2
+45
View File
@@ -0,0 +1,45 @@
class Foo {
fun bar() {
}
}
object Bar {
fun xyzzy() {
}
}
object BarS { fun xyzzy() {} }
val f = object {
fun foo() {}
}
class FooCO {
fun bar() {
}
companion object {
fun foo() {}
}
}
class FooM
: IFoo {
fun bar()
}
class FooN : IFoo {
fun bar()
}
class FooC(
val x: String
) {
fun bar()
}
enum class Foo{Bar,Baz}
class Foo{fun bar() {}}
// SET_INT: BLANK_LINES_AFTER_CLASS_HEADER = 2