Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Issue #1: Add detekt (Static code analysis for Kotlin)
Browse files Browse the repository at this point in the history
  • Loading branch information
pocmo committed Mar 23, 2018
1 parent c58e5cb commit 2bb41dc
Show file tree
Hide file tree
Showing 2 changed files with 393 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ buildscript {
}
}

plugins {
id("io.gitlab.arturbosch.detekt").version("1.0.0.RC6-4")
}

allprojects {
repositories {
google()
Expand All @@ -26,3 +30,13 @@ allprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}

detekt {
version = "1.0.0.RC6-4"
profile("main") {
input = "$projectDir"
config = "$projectDir/config/detekt.yml"
filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
output = "$projectDir/build/reports/detekt"
}
}
Loading

0 comments on commit 2bb41dc

Please sign in to comment.