Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Detekt to 1.10.0 #148

Merged
merged 1 commit into from
Jul 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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