Luke
03/04/2020, 8:58 PMdetektBaseline
and detekt
finish successfully in 1 second and nothing else happens, even though I know for a fact that the code contains errors. The only way I had it working was by creating my own Gradle tasks, but I don’t want to do this if I don’t have to. I have this in my project-level Gradle:
plugins {
id "io.gitlab.arturbosch.detekt" version "1.6.0"
}
detekt {
toolVersion = "1.6.0"
config = files("$projectDir/config/detekt/detekt.yml")
baseline = file("$projectDir/config/detekt/baseline.xml")
// source = files("src/main/kotlin") // This does not work for some reasons (Could not set unknown property 'source' for object of type io.gitlab.arturbosch.detekt.extensions.DetektExtension.)
buildUponDefaultConfig = true
parallel = true
ignoreFailures = true
reports {
txt.enabled = false
xml.enabled = false
html {
enabled = true
destination = file("$projectDir/reports/detekt/report.html")
}
}
}
Shiveen Pandita
03/04/2020, 11:48 PMdetektCheck
?r4zzz4k
03/05/2020, 1:39 PMLuke
03/05/2020, 2:18 PMdetektCheck
outputs Task 'detektCheck' not found in root project '...'.
. My understanding was that it was replaced by simply detekt
.
input
instead of source
seams to workCody Engel
03/10/2020, 5:49 PMclasspath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${versions.detekt}"
Followed by apply plugin: "io.gitlab.arturbosch.detekt"
It ends up running 🤷🏻♂️Luke
03/10/2020, 6:01 PM