Fix tests after disabling trailing comma
#KT-34744
This commit is contained in:
@@ -41,12 +41,10 @@ val x8 = foo!!!!!!!!
|
||||
val x9 = ((b!!)!!!!)!!
|
||||
.f
|
||||
|
||||
val y = xyzzy(
|
||||
foo
|
||||
.bar()
|
||||
.baz()
|
||||
.quux(),
|
||||
)
|
||||
val y = xyzzy(foo
|
||||
.bar()
|
||||
.baz()
|
||||
.quux())
|
||||
|
||||
fun foo() {
|
||||
foo
|
||||
@@ -91,4 +89,5 @@ fun foo() {
|
||||
}
|
||||
|
||||
// SET_INT: METHOD_CALL_CHAIN_WRAP = 2
|
||||
// SET_FALSE: WRAP_FIRST_METHOD_IN_CALL_CHAIN
|
||||
// SET_FALSE: WRAP_FIRST_METHOD_IN_CALL_CHAIN
|
||||
// SET_TRUE: ALLOW_TRAILING_COMMA
|
||||
@@ -71,4 +71,5 @@ fun foo() {
|
||||
}
|
||||
|
||||
// SET_INT: METHOD_CALL_CHAIN_WRAP = 2
|
||||
// SET_FALSE: WRAP_FIRST_METHOD_IN_CALL_CHAIN
|
||||
// SET_FALSE: WRAP_FIRST_METHOD_IN_CALL_CHAIN
|
||||
// SET_TRUE: ALLOW_TRAILING_COMMA
|
||||
|
||||
+2
-1
@@ -38,4 +38,5 @@ fun foo() {
|
||||
}
|
||||
|
||||
// SET_INT: METHOD_CALL_CHAIN_WRAP = 2
|
||||
// SET_FALSE: WRAP_FIRST_METHOD_IN_CALL_CHAIN
|
||||
// SET_FALSE: WRAP_FIRST_METHOD_IN_CALL_CHAIN
|
||||
// SET_TRUE: ALLOW_TRAILING_COMMA
|
||||
|
||||
+8
-11
@@ -12,16 +12,12 @@ fun test() {
|
||||
|
||||
fun test1() {
|
||||
val abc = ArrayList<Int>()
|
||||
.map(
|
||||
{
|
||||
it * 2
|
||||
},
|
||||
)
|
||||
.filter(
|
||||
{
|
||||
it > 4
|
||||
},
|
||||
)
|
||||
.map({
|
||||
it * 2
|
||||
})
|
||||
.filter({
|
||||
it > 4
|
||||
})
|
||||
}
|
||||
|
||||
fun test2() {
|
||||
@@ -39,7 +35,7 @@ fun test3() {
|
||||
|
||||
fun test4() {
|
||||
val abc = ArrayList<Int>().mapTo(
|
||||
LinkedHashSet(),
|
||||
LinkedHashSet()
|
||||
) {
|
||||
it * 2
|
||||
}
|
||||
@@ -56,3 +52,4 @@ fun testWithComments() {
|
||||
}
|
||||
|
||||
// SET_TRUE: CONTINUATION_INDENT_FOR_CHAINED_CALLS
|
||||
// SET_TRUE: ALLOW_TRAILING_COMMA
|
||||
@@ -56,3 +56,4 @@ fun testWithComments() {
|
||||
}
|
||||
|
||||
// SET_TRUE: CONTINUATION_INDENT_FOR_CHAINED_CALLS
|
||||
// SET_TRUE: ALLOW_TRAILING_COMMA
|
||||
@@ -52,3 +52,4 @@ fun testWithComments() {
|
||||
}
|
||||
|
||||
// SET_TRUE: CONTINUATION_INDENT_FOR_CHAINED_CALLS
|
||||
// SET_TRUE: ALLOW_TRAILING_COMMA
|
||||
+5
-7
@@ -6,11 +6,9 @@ fun foo() {
|
||||
finish()
|
||||
}
|
||||
|
||||
FirebaseAuth.getInstance().addAuthStateListener(
|
||||
object : FirebaseAuth.AuthStateListener {
|
||||
override fun onAuthStateChanged(auth: FirebaseAuth) {
|
||||
// ...
|
||||
}
|
||||
},
|
||||
)
|
||||
FirebaseAuth.getInstance().addAuthStateListener(object : FirebaseAuth.AuthStateListener {
|
||||
override fun onAuthStateChanged(auth: FirebaseAuth) {
|
||||
// ...
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user