-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle.kts
40 lines (34 loc) · 878 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
40
import io.gitlab.arturbosch.detekt.*
plugins {
id("io.gitlab.arturbosch.detekt")
}
detekt {
source.from(files(rootProject.rootDir))
parallel = true
autoCorrect = true
buildUponDefaultConfig = true
}
dependencies {
detektPlugins(libs.detekt.formatting)
}
tasks {
fun SourceTask.config() {
include("**/*.kt")
exclude("**/*.kts")
exclude("**/resources/**")
exclude("**/generated/**")
exclude("**/build/**")
}
withType<DetektCreateBaselineTask>().configureEach {
config()
}
withType<Detekt>().configureEach {
config()
reports {
sarif.required.set(true)
}
}
}
plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().downloadBaseUrl = null
}