Update dependency com.pinterest.ktlint:ktlint-cli to v1.3.0 (#1853)

* Update dependency com.pinterest.ktlint:ktlint-cli to v1.3.0

* Disable expression rule

* Reformat

* Whatever

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <jw@squareup.com>
This commit is contained in:
renovate[bot]
2024-06-21 23:35:34 -04:00
committed by GitHub
parent 807934f658
commit 7ea4ecabfe
15 changed files with 46 additions and 22 deletions

View File

@@ -13,7 +13,8 @@ enum class TestMode {
}
val testMode =
findProperty("kotlinTestMode")?.toString()
findProperty("kotlinTestMode")
?.toString()
?.let(TestMode::valueOf)
?: REFLECT

View File

@@ -13,7 +13,8 @@ enum class TestMode {
}
val testMode =
findProperty("kotlinTestMode")?.toString()
findProperty("kotlinTestMode")
?.toString()
?.let(TestMode::valueOf)
?: KSP

View File

@@ -134,7 +134,9 @@ abstract class Layer1<A> {
var layer1: A? = null
}
abstract class Layer2<B> : Layer1<B>(), LayerInterface<B> {
abstract class Layer2<B> :
Layer1<B>(),
LayerInterface<B> {
var layer2: B? = null
}
@@ -147,4 +149,5 @@ abstract class Layer3<C, D> : Layer2<D>() {
data class Layer4<E : Personable, F>(
val layer4E: E,
val layer4F: F? = null,
) : Layer3<List<Int>, String>(), LayerInterface<String>
) : Layer3<List<Int>, String>(),
LayerInterface<String>

View File

@@ -44,5 +44,7 @@ class MoshiKspTest {
// NOTE the Any() superclass is important to test that we're detecting the farthest parent class
// correct.y
@JsonClass(generateAdapter = true)
data class SimpleImpl(override val a: String, val b: String) : Any(), SimpleInterface
data class SimpleImpl(override val a: String, val b: String) :
Any(),
SimpleInterface
}