-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
50 lines (40 loc) · 1.28 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 {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.jetbrainsCompose) apply false
alias(libs.plugins.composeCompiler) apply false
alias(libs.plugins.kotlinJvm) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.kotlinSerialization) apply false
alias(libs.plugins.buildKonfig) apply false
alias(libs.plugins.graalVM) apply false
alias(libs.plugins.detekt)
alias(libs.plugins.dotenvGradle)
}
detekt {
toolVersion = libs.versions.detekt.get()
config.setFrom("config/detekt/detekt.yml")
source.setFrom(
"composeApp/src/androidMain/kotlin",
"composeApp/src/commonMain/kotlin",
"composeApp/src/desktopMain/kotlin",
"composeApp/src/iosMain/kotlin",
"composeApp/src/wasmJsMain/kotlin",
"server/src/main/kotlin",
"shared/src/commonMain/kotlin",
)
autoCorrect = true
}
tasks.withType(Detekt::class) {
reports {
html.required.set(true)
md.required.set(false)
xml.required.set(false)
sarif.required.set(false)
txt.required.set(false)
}
}
dependencies {
detektPlugins(libs.detekt.formatting)
}