-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make all build scripts indexed, cleanup unused plugin
- Loading branch information
Showing
6 changed files
with
90 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
buildSrc/src/main/kotlin/org/jetbrains/exposed/gradle/Detekt.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.jetbrains.exposed.gradle | ||
|
||
import io.gitlab.arturbosch.detekt.DetektPlugin | ||
import io.gitlab.arturbosch.detekt.extensions.DetektExtension | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.apply | ||
import org.gradle.kotlin.dsl.configure | ||
|
||
|
||
fun Project.configureDetekt() { | ||
apply<DetektPlugin>() | ||
|
||
configure<DetektExtension> { | ||
ignoreFailures = false | ||
buildUponDefaultConfig = true | ||
config = files( | ||
rootDir.resolve("detekt/detekt-config.yml").takeIf { it.isFile }, | ||
projectDir.resolve("detekt/detekt-config.yml").takeIf { it.isFile } | ||
) | ||
reports { | ||
xml.enabled = true | ||
html.enabled = false | ||
txt.enabled = false | ||
sarif.enabled = false | ||
} | ||
parallel = true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters