Add "Blank lines before }" option

#KT-15504 Fixed
This commit is contained in:
Dmitry Jemerov
2017-06-22 16:50:00 +02:00
parent 5c8a90fe85
commit 722cc521a9
8 changed files with 111 additions and 5 deletions
+17
View File
@@ -0,0 +1,17 @@
fun foo() {
println("a")
if (1 > 2) {
println("foo")
}
}
class X {
fun foo() = 1
}
// SET_INT: KEEP_BLANK_LINES_BEFORE_RBRACE = 0
+25
View File
@@ -0,0 +1,25 @@
fun foo() {
println("a")
if (1 > 2) {
println("foo")
}
}
class X {
fun foo() = 1
}
// SET_INT: KEEP_BLANK_LINES_BEFORE_RBRACE = 0
@@ -0,0 +1,20 @@
fun foo() {
println("a")
if (1 > 2) {
println("foo")
}
}
class X {
fun foo() = 1
}
+23
View File
@@ -0,0 +1,23 @@
fun foo() {
println("a")
if (1 > 2) {
println("foo")
}
}
class X {
fun foo() = 1
}