|
|
@ -18,7 +18,7 @@ buildscript {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
plugins {
|
|
|
|
id("io.gitlab.arturbosch.detekt").version("1.0.0-RC16")
|
|
|
|
id("io.gitlab.arturbosch.detekt").version("1.6.0")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
allprojects {
|
|
|
@ -48,10 +48,9 @@ task clean(type: Delete) {
|
|
|
|
|
|
|
|
|
|
|
|
detekt {
|
|
|
|
detekt {
|
|
|
|
// The version number is duplicated, please refer to plugins block for more details
|
|
|
|
// The version number is duplicated, please refer to plugins block for more details
|
|
|
|
version = "1.0.0-RC16"
|
|
|
|
version = "1.6.0"
|
|
|
|
input = files("$projectDir/app/src")
|
|
|
|
input = files("$projectDir/app/src")
|
|
|
|
config = files("$projectDir/config/detekt.yml")
|
|
|
|
config = files("$projectDir/config/detekt.yml")
|
|
|
|
filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reports {
|
|
|
|
reports {
|
|
|
|
html {
|
|
|
|
html {
|
|
|
@ -80,3 +79,9 @@ task ktlint(type: JavaExec, group: "verification") {
|
|
|
|
main = "com.pinterest.ktlint.Main"
|
|
|
|
main = "com.pinterest.ktlint.Main"
|
|
|
|
args "app/src/**/*.kt"
|
|
|
|
args "app/src/**/*.kt"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks.withType(io.gitlab.arturbosch.detekt.Detekt.class) {
|
|
|
|
|
|
|
|
exclude("**/resources/**")
|
|
|
|
|
|
|
|
exclude("**/test/**")
|
|
|
|
|
|
|
|
exclude("**/tmp/**")
|
|
|
|
|
|
|
|
}
|
|
|
|