Skip to content

Commit

Permalink
update Detekt to 1.10.0 (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
RBusarow committed Jul 14, 2020
1 parent e70212d commit aa096b7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
11 changes: 1 addition & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions buildSrc/src/main/kotlin/DocsTasks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion dispatch-detekt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/dispatch-detekt.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit aa096b7

Please sign in to comment.