Skip to content

Commit

Permalink
chore(build): Add detekt to project (#3908)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
robzienert and mergify[bot] committed Sep 11, 2020
1 parent 206da4d commit eb0cd22
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .detekt.yml
@@ -0,0 +1,23 @@
complexity:
TooManyFunctions:
active: false

style:
ThrowsCount:
active: false
MaxLineLength:
active: false
ReturnCount:
active: false

performance:
SpreadOperator:
active: false

comments:
UndocumentedPublicClass:
active: true
UndocumentedPublicFunction:
active: true
UndocumentedPublicProperty:
active: true
1 change: 1 addition & 0 deletions build.gradle
Expand Up @@ -19,6 +19,7 @@ plugins {
id "nebula.kotlin" version "$kotlinVersion" apply false
id "org.jetbrains.kotlin.plugin.allopen" version "$kotlinVersion" apply false
id "org.jetbrains.dokka" version "0.10.1" apply false
id "io.gitlab.arturbosch.detekt" version "1.7.4" apply false
}

allprojects {
Expand Down
16 changes: 16 additions & 0 deletions gradle/kotlin.gradle
Expand Up @@ -16,6 +16,7 @@

apply plugin: "nebula.kotlin"
apply plugin: "kotlin-spring"
apply plugin: "io.gitlab.arturbosch.detekt"

compileKotlin {
kotlinOptions {
Expand All @@ -30,3 +31,18 @@ compileTestKotlin {
jvmTarget = "1.8"
}
}

detekt {
parallel = false
config = files("$rootDir/.detekt.yml")
buildUponDefaultConfig = true
ignoreFailures = true
reports {
xml {
enabled = false
}
txt {
enabled = false
}
}
}

0 comments on commit eb0cd22

Please sign in to comment.