diff --git a/build.gradle.kts b/build.gradle.kts index 8de919c3e..a81529a12 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,10 +15,9 @@ @file:Suppress("MagicNumber") -import io.gitlab.arturbosch.detekt.Detekt +import io.gitlab.arturbosch.detekt.* import kotlinx.knit.* import kotlinx.validation.* -import org.gradle.kotlin.dsl.* import org.jetbrains.dokka.gradle.* import org.jetbrains.kotlin.gradle.tasks.* import java.net.* @@ -292,14 +291,6 @@ subprojects { val unique = "${rootProject.relativePath(projectDir)}/${project.name}" - idea { - path = "$rootDir/.idea" - codeStyleScheme = "$rootDir/.idea/Project.xml" - inspectionsProfile = "$rootDir/.idea/Project-Default.xml" - report = "${project.projectDir}/reports/build/detekt-reports" - mask = "*.kt" - } - reports { xml { enabled = false diff --git a/buildSrc/src/main/kotlin/Dependencies.kt b/buildSrc/src/main/kotlin/Dependencies.kt index 94ed8edb4..0a1c299ac 100644 --- a/buildSrc/src/main/kotlin/Dependencies.kt +++ b/buildSrc/src/main/kotlin/Dependencies.kt @@ -137,7 +137,7 @@ object Libs { } object Detekt { - const val version = "1.9.1" + const val version = "1.10.0" const val api = "io.gitlab.arturbosch.detekt:detekt-api:$version" const val cli = "io.gitlab.arturbosch.detekt:detekt-cli:$version" const val formatting = "io.gitlab.arturbosch.detekt:detekt-formatting:$version" diff --git a/buildSrc/src/main/kotlin/DocsTasks.kt b/buildSrc/src/main/kotlin/DocsTasks.kt index 9cef73fca..647ec44c6 100644 --- a/buildSrc/src/main/kotlin/DocsTasks.kt +++ b/buildSrc/src/main/kotlin/DocsTasks.kt @@ -143,6 +143,10 @@ fun File.updateLibraryVersions(): File { Libs.AndroidX.Lifecycle.viewModel.toDependencyMatcher(), Libs.AndroidX.Test.runner.toDependencyMatcher(), Libs.AndroidX.Test.Espresso.core.toDependencyMatcher(), + Libs.Detekt.api.toDependencyMatcher(), + Libs.Detekt.cli.toDependencyMatcher(), + Libs.Detekt.formatting.toDependencyMatcher(), + Libs.Detekt.test.toDependencyMatcher(), Libs.JUnit.jUnit4.toDependencyMatcher(), Libs.JUnit.jUnit5Vintage.toDependencyMatcher(), Libs.JUnit.jUnit5Runtime.toDependencyMatcher(), diff --git a/dispatch-detekt/README.md b/dispatch-detekt/README.md index 66ee7ca9c..258eb685c 100644 --- a/dispatch-detekt/README.md +++ b/dispatch-detekt/README.md @@ -32,7 +32,7 @@ In root project-level `build.gradle` or `build.gradle.kts`: ``` kotlin allprojects { dependencies { - detekt("io.gitlab.arturbosch.detekt:detekt-cli:1.9.1") + detekt("io.gitlab.arturbosch.detekt:detekt-cli:1.10.0") detektPlugins("com.rickbusarow.dispatch:dispatch-detekt:1.0.0-beta04") } diff --git a/docs/modules/dispatch-detekt.md b/docs/modules/dispatch-detekt.md index 66ee7ca9c..258eb685c 100644 --- a/docs/modules/dispatch-detekt.md +++ b/docs/modules/dispatch-detekt.md @@ -32,7 +32,7 @@ In root project-level `build.gradle` or `build.gradle.kts`: ``` kotlin allprojects { dependencies { - detekt("io.gitlab.arturbosch.detekt:detekt-cli:1.9.1") + detekt("io.gitlab.arturbosch.detekt:detekt-cli:1.10.0") detektPlugins("com.rickbusarow.dispatch:dispatch-detekt:1.0.0-beta04") }