update detekt config to new version (after RC 15)
This commit is contained in:
parent
4460f594a4
commit
4d583007da
|
|
@ -29,11 +29,8 @@ cpd {
|
||||||
}
|
}
|
||||||
|
|
||||||
detekt {
|
detekt {
|
||||||
input = files("${rootDir}")
|
|
||||||
config = files("$buildScriptsDir/kotlin/detekt-config.yml")
|
config = files("$buildScriptsDir/kotlin/detekt-config.yml")
|
||||||
|
parallel = true
|
||||||
// TODO add excludes from rootProject.extensions.findByName("staticAnalysisExcludes")
|
|
||||||
filters = ".*src/test.*,.*/resources/.*,.*/tmp/.*,.*/build/.*"
|
|
||||||
|
|
||||||
reports {
|
reports {
|
||||||
html {
|
html {
|
||||||
|
|
@ -45,6 +42,7 @@ detekt {
|
||||||
destination = file("${project.buildDir}/reports/kotlin-detekt.xml")
|
destination = file("${project.buildDir}/reports/kotlin-detekt.xml")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
import org.apache.tools.ant.taskdefs.condition.Os
|
import org.apache.tools.ant.taskdefs.condition.Os
|
||||||
|
|
@ -351,7 +349,10 @@ getCheckstyleTask = { sources ->
|
||||||
return task.name
|
return task.name
|
||||||
}
|
}
|
||||||
|
|
||||||
getKotlinDetektTask = { "detekt" }
|
getKotlinDetektTask = {
|
||||||
|
// TODO add excludes from rootProject.extensions.findByName("staticAnalysisExcludes")
|
||||||
|
"detekt"
|
||||||
|
}
|
||||||
|
|
||||||
task optimizePng {
|
task optimizePng {
|
||||||
doFirst {
|
doFirst {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue