forked from arrow-kt/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
detekt.gradle.kts
39 lines (35 loc) · 1.49 KB
/
detekt.gradle.kts
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
repositories {
mavenCentral()
maven( url = "http://dl.bintray.com/arturbosch/code-analysis")
}
val detektConf by configurations.creating
dependencies {
detektConf("io.gitlab.arturbosch.detekt:detekt-cli:1.0.0.M13")
detektConf("io.gitlab.arturbosch.detekt:detekt-formatting:1.0.0.M13")
}
val detekt by tasks.creating(JavaExec::class) {
group = "verification"
main = "io.gitlab.arturbosch.detekt.cli.Main"
classpath = detektConf
val input = "${project.projectDir.absolutePath}"
val config = "${project.projectDir}/detekt.yml"
val reports = "${project.projectDir.absolutePath}/reports/report.detekt"
val baseline = "${project.projectDir.absolutePath}/reports/baseline.xml"
val filters = ".*test.*"
val rulesets = ""
val params = listOf("-p", input, "-c", config, "-f", filters, "-r", rulesets, "-o", reports, "-b", baseline)
args(params)
}
val detektEstablishAcceptedErrors by tasks.creating(JavaExec::class) {
group = "verification"
main = "io.gitlab.arturbosch.detekt.cli.Main"
classpath = detektConf
val input = "${project.projectDir.absolutePath}"
val config = "${project.projectDir}/detekt.yml"
val reports = "${project.projectDir.absolutePath}/reports/report.detekt"
val baseline = "${project.projectDir.absolutePath}/reports/baseline.xml"
val filters = ".*test.*"
val rulesets = ""
val params = listOf("-p", input, "-c", config, "-f", filters, "-r", rulesets, "-o", reports, "-b", baseline, "-cb")
args(params)
}