-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdetekt.gradle
32 lines (26 loc) · 847 Bytes
/
detekt.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
task detektAll()
def analysisDir = "${project.rootDir}/detekt"
def reportsDir = "$analysisDir/reports"
subprojects { subproject ->
apply plugin: 'io.gitlab.arturbosch.detekt'
apply from: '../dependencies.gradle'
configurations {
detekt
}
dependencies {
detekt("io.gitlab.arturbosch.detekt:detekt-formatting:$versions.detekt")
detekt("io.gitlab.arturbosch.detekt:detekt-cli:$versions.detekt")
}
detekt {
toolVersion = "$versions.detekt"
input = files("src")
filters = ".*/resources/.*,.*/build/.*"
config = files("${project.rootDir}/detekt/config/detekt/config.yml")
reports {
html {
destination = file("$reportsDir/html/detekt_${subproject.name}.html")
}
}
}
detektAll.dependsOn tasks.detekt
}