Run Detekt from root module only
This commit is contained in:
committed by
Niels van Velzen
parent
d5d1954aa6
commit
8d28a22337
@@ -16,20 +16,25 @@ java {
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
// Configure linting
|
||||
apply<io.gitlab.arturbosch.detekt.DetektPlugin>()
|
||||
detekt {
|
||||
buildUponDefaultConfig = true
|
||||
ignoreFailures = true
|
||||
config = files("$rootDir/detekt.yaml")
|
||||
basePath = rootDir.absolutePath
|
||||
detekt {
|
||||
buildUponDefaultConfig = true
|
||||
ignoreFailures = true
|
||||
config.setFrom(files("$rootDir/detekt.yaml"))
|
||||
basePath = rootDir.absolutePath
|
||||
parallel = true
|
||||
|
||||
reports {
|
||||
sarif.enabled = true
|
||||
}
|
||||
source.setFrom(fileTree(projectDir) {
|
||||
include("**/*.kt", "**/*.kts")
|
||||
})
|
||||
}
|
||||
|
||||
tasks.withType<io.gitlab.arturbosch.detekt.Detekt> {
|
||||
reports {
|
||||
sarif.required.set(true)
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
// Configure default Kotlin compiler options
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile> {
|
||||
compilerOptions {
|
||||
|
||||
Reference in New Issue
Block a user