Updated on 2026-08-14
This commit is contained in:
parent
76f955568e
commit
7256473282
4 changed files with 692 additions and 0 deletions
24
buildSrc/src/main/java/detekt-convention.gradle.kts
Normal file
24
buildSrc/src/main/java/detekt-convention.gradle.kts
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import io.gitlab.arturbosch.detekt.Detekt
|
||||
|
||||
plugins {
|
||||
id("io.gitlab.arturbosch.detekt")
|
||||
}
|
||||
|
||||
tasks.withType<Detekt> {
|
||||
parallel = true
|
||||
ignoreFailures = false
|
||||
autoCorrect = true
|
||||
buildUponDefaultConfig = true
|
||||
|
||||
config.setFrom(rootProject.files("config/detekt/detekt.yml"))
|
||||
include("**/*.kt")
|
||||
exclude("**/resources/**", "**/build/**")
|
||||
reports {
|
||||
txt {
|
||||
required.set(true)
|
||||
outputLocation.set(rootProject.file("build/reports/detekt.txt"))
|
||||
}
|
||||
}
|
||||
|
||||
jvmTarget = "1.8"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue