-
Notifications
You must be signed in to change notification settings - Fork 153
/
build.gradle.kts
39 lines (33 loc) · 945 Bytes
/
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
import io.gitlab.arturbosch.detekt.Detekt
plugins {
base
id("convention.githooks")
id("convention.dependency-updates")
id("io.gitlab.arturbosch.detekt") version "1.21.0"
id("convention.air")
}
buildscript {
dependencies {
classpath(libs.kotlinPlugin)
classpath(libs.androidPlugin)
}
}
dependencies {
add("detektPlugins", libs.detektFormatting)
}
val detektAll = tasks.register<Detekt>("detektAll") {
description = "Runs over whole code base without the starting overhead for each module."
parallel = true
autoCorrect = true
setSource(files(projectDir))
config.setFrom(files(project.rootDir.resolve("static-analysis/config/detekt/config.yml")))
buildUponDefaultConfig = false
include("**/*.kt")
include("**/*.kts")
exclude("**/resources/**")
exclude("**/build/**")
reports {
xml.required.set(false)
html.required.set(false)
}
}