Add option for wrapping closing paren in multiline if conditions

This commit is contained in:
Dmitry Jemerov
2017-12-21 14:22:20 +01:00
parent 7711f8e3a7
commit 6208c69c72
7 changed files with 43 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
fun x() {
if (foo.length > 0 &&
barLen > 0
) {
println("> 0")
}
}
// SET_TRUE: IF_RPAREN_ON_NEW_LINE
// SET_FALSE: CONTINUATION_INDENT_IN_IF_CONDITIONS
+9
View File
@@ -0,0 +1,9 @@
fun x() {
if (foo.length > 0 &&
barLen > 0) {
println("> 0")
}
}
// SET_TRUE: IF_RPAREN_ON_NEW_LINE
// SET_FALSE: CONTINUATION_INDENT_IN_IF_CONDITIONS