forked from DavayPosmotrim/dv-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
41 lines (34 loc) · 1.2 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.jetbrainsKotlinAndroid) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.detekt)
alias(libs.plugins.navigationSafeArgs) apply false
alias(libs.plugins.kotlinParcelize) apply false
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
parallel = true
autoCorrect = false
disableDefaultRuleSets = false
buildUponDefaultConfig = true
jvmTarget = JavaVersion.valueOf(libs.versions.java.get()).toString()
setSource(files(projectDir))
include("**/*.kt")
include("**/*.kts")
exclude("**/resources/**")
exclude("**/build/**")
reports {
xml.required.set(false)
html.required.set(true)
txt.required.set(true)
sarif.required.set(false)
md.required.set(false)
}
config.setFrom(files(project.rootDir.resolve("conf/custom-detekt.yml")))
}
dependencies {
add("detekt", libs.bundles.staticAnalysis.detekt)
detektPlugins(libs.staticAnalysis.detektCli)
}