feat(flutter): admin parity slice — requests, quarantine, users, invites #33
@@ -94,18 +94,18 @@ detekt {
|
|||||||
config.setFrom(files("$rootDir/config/detekt.yml"))
|
config.setFrom(files("$rootDir/config/detekt.yml"))
|
||||||
buildUponDefaultConfig = true
|
buildUponDefaultConfig = true
|
||||||
parallel = true
|
parallel = true
|
||||||
autoCorrect = false
|
// `autoCorrect` was dropped in detekt 2.0's DSL options list.
|
||||||
}
|
}
|
||||||
|
|
||||||
// detekt 1.23.7 bundles kotlin-compiler-embeddable 1.9.10, which caps
|
// detekt 2.0 moved its task types to the `dev.detekt.gradle` package and
|
||||||
// `--jvm-target` at 22. The runner's JDK is 25 and detekt would auto-
|
// flipped `jvmTarget` to the Property API. Pin to 17 to match our actual
|
||||||
// detect that, so pin the analyzer target to match our actual bytecode
|
// bytecode target (compileOptions.targetCompatibility +
|
||||||
// target (17).
|
// kotlin.compilerOptions.jvmTarget).
|
||||||
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
|
tasks.withType<dev.detekt.gradle.Detekt>().configureEach {
|
||||||
jvmTarget = "17"
|
jvmTarget.set("17")
|
||||||
}
|
}
|
||||||
tasks.withType<io.gitlab.arturbosch.detekt.DetektCreateBaselineTask>().configureEach {
|
tasks.withType<dev.detekt.gradle.DetektCreateBaselineTask>().configureEach {
|
||||||
jvmTarget = "17"
|
jvmTarget.set("17")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
@@ -86,4 +86,4 @@ ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
|||||||
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
|
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
|
||||||
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
||||||
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint-gradle" }
|
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint-gradle" }
|
||||||
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
|
detekt = { id = "dev.detekt", version.ref = "detekt" }
|
||||||
|
|||||||
Reference in New Issue
Block a user