-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
49 lines (42 loc) · 1.18 KB
/
build.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
40
41
42
43
44
45
46
47
48
49
import io.gitlab.arturbosch.detekt.Detekt
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
import pl.beavercoding.viewbindingdelegate.buildsrc.detektPlugins
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath(Libs.androidGradlePlugin)
classpath(Libs.Kotlin.gradlePlugin)
classpath(Libs.Androidx.Navigation.safeArgsPlugin)
classpath(Libs.Detekt.detektGradlePlugin)
}
}
allprojects {
apply(plugin = Libs.Detekt.detektPlugin)
dependencies {
detektPlugins(Libs.Detekt.detektFormatting)
}
configure<DetektExtension> {
debug = true
allRules = false
parallel = true
config.setFrom(files("$rootDir/config/detekt.yml"))
buildUponDefaultConfig = true
ignoredBuildTypes = listOf("release")
}
}
tasks.withType<Detekt>().configureEach {
reports {
html.required.set(true)
xml.required.set(false)
txt.required.set(false)
sarif.required.set(false)
md.required.set(false)
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.layout.buildDirectory)
}