-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
50 lines (42 loc) · 1.6 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
50
import io.gitlab.arturbosch.detekt.Detekt
plugins {
//trick: for the same plugin versions in all sub-modules
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.kotlinCocoapods) apply false
alias(libs.plugins.org.jetbrains.kotlin.jvm) apply false
alias(libs.plugins.kmpNativeCoroutines) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.detekt)
}
dependencies {
detektPlugins(libs.detekt.formatting)
}
allprojects {
apply(plugin = "io.gitlab.arturbosch.detekt")
detekt {
// Define the detekt configuration(s) you want to use.
// Defaults to the default detekt configuration.
config = files("${rootProject.rootDir}/config/detekt/detekt.yml")
// Applies the config files on top of detekt's default config file. `false` by default.
buildUponDefaultConfig = true
// Builds the AST in parallel. Rules are always executed in parallel.
// Can lead to speedups in larger projects. `false` by default.
parallel = true
// Turns on all the rules. `false` by default.
allRules = false
// Adds debug output during task execution. `false` by default.
debug = false
}
tasks.withType<Detekt>().configureEach {
reports {
// Enable/Disable HTML report (default: true)
html.required.set(true)
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}