-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (36 loc) · 1.12 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
id 'io.gitlab.arturbosch.detekt' version '1.8.0'
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
detektPlugins "io.github.mkohm:detekt-hint:0.1.5"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
// Detekt task configuration. Run the detektMain task to include detekt-hint rules. (This is because detekt-hint is using an experimental feature of detekt that includes type resolution.)
detekt {
config = files("$projectDir/config/detekt-hint-config.yml") // point to your custom config defining rules to run, overwriting default behavior
reports {
html {
enabled = true
destination = file("build/reports/detekt/detekt.html")
}
xml {
enabled = true
destination = file("build/reports/detekt/detekt-hint-report.xml")
}
txt {
enabled = true
destination = file("build/reports/detekt/detekt.txt")
}
}
}