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 monorepo from 1.21.0-RC1 to 1.21.0 (patch) #112

Merged
merged 6 commits into from Jul 16, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Expand Up @@ -18,7 +18,7 @@ androidx-test = "1.4.0"
# Changelog: https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md
kotlin = "1.7.10"

detekt = "1.21.0-RC1"
detekt = "1.21.0"

dagger = "2.42"

Expand Down
Expand Up @@ -42,7 +42,8 @@ internal fun Project.commonJavaConfig() {
}
plugins.apply("io.gitlab.arturbosch.detekt")
plugins.withId("io.gitlab.arturbosch.detekt") {
val detekt = this@commonJavaConfig.extensions.getByName<DetektExtension>("detekt")
val project = this@commonJavaConfig
val detekt = project.extensions.getByName<DetektExtension>("detekt")
detekt.apply {
ignoreFailures = true
// TODEL https://github.com/detekt/detekt/issues/4926
Expand Down Expand Up @@ -82,7 +83,7 @@ internal fun Project.commonJavaConfig() {
tasks.withType<Detekt> {
detektReportMergeXml.configure {
mustRunAfter(this@withType)
input.from(this@withType.xmlReportFile)
input.from(this@withType.xmlReportFile)
}
}
}
Expand Down