Skip to content

Commit

Permalink
Include detekt compose rules as detekt dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdavies committed Oct 1, 2024
1 parent a4abc17 commit 3cfaeee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
4 changes: 4 additions & 0 deletions build-plugins/src/main/kotlin/io.ashdavies.kotlin.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ private val detektAll by tasks.registering {
dependsOn(tasks.withType<Detekt>())
}

dependencies {
add("detektPlugins", libs.detekt.compose)
}

extensions.configure<DetektExtension> {
config.setFrom(rootProject.file("detekt-config.yml"))
buildUponDefaultConfig = true
Expand Down
10 changes: 0 additions & 10 deletions circuit-support/build.gradle.kts

This file was deleted.

6 changes: 5 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ androidx-paging = "3.3.2"
cash-sqldelight = "2.0.2"
coil-kt = "3.0.0-alpha10"
compose-plugin = "1.6.11"
detekt = "1.23.7"
gitlive-firebase = "2.1.0"
google-accompanist = "0.36.0"
google-android = "8.6.1"
Expand Down Expand Up @@ -37,6 +38,9 @@ auth-jwks-rsa = "com.auth0:jwks-rsa:0.22.1"
coil-compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil-kt" }
coil-network = { module = "io.coil-kt.coil3:coil-network-ktor2", version.ref = "coil-kt" }

detekt-compose = "io.nlopez.compose.rules:detekt:0.4.12"
detekt-formatatting = { module = "io.gitlab.arturbosch.detekt:detekt-formatting", version.ref = "detekt" }

fasterxml-jackson-core = "com.fasterxml.jackson.core:jackson-core:2.18.0"
fusesource-jansi = "org.fusesource.jansi:jansi:2.4.1"

Expand Down Expand Up @@ -123,7 +127,7 @@ build-config = "com.github.gmazzo.buildconfig:5.5.0"
cash-sqldelight = { id = "app.cash.sqldelight", version.ref = "cash-sqldelight" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "jetbrains-kotlin" }
dependency-analysis = "com.autonomousapps.dependency-analysis:2.1.1"
detekt = "io.gitlab.arturbosch.detekt:1.23.7"
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
google-services = { id = "com.google.gms.google-services", version.ref = "google-services" }
gradle-doctor = "com.osacky.doctor:0.10.0"
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
Expand Down

0 comments on commit 3cfaeee

Please sign in to comment.