Skip to content

Commit

Permalink
build(gradle/plugin): add io.gitlab.arturbosch.detekt version 1.21.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
ymind committed Jul 4, 2022
1 parent ee56f2b commit 93a39ee
Show file tree
Hide file tree
Showing 3 changed files with 813 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ plugins {

// https://plugins.gradle.org/plugin/org.jlleitschuh.gradle.ktlint
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
// https://plugins.gradle.org/plugin/io.gitlab.arturbosch.detekt
id("io.gitlab.arturbosch.detekt") version "1.21.0-RC1"
}

group = "team.yi.rsql"
Expand Down Expand Up @@ -69,6 +71,8 @@ dependencies {

implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")

detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.21.0-RC1")
}

tasks {
Expand Down Expand Up @@ -148,6 +152,13 @@ ktlint {
}
}

detekt {
buildUponDefaultConfig = true
allRules = false
config = files("$rootDir/config/detekt/detekt.yml")
baseline = file("$rootDir/config/detekt/baseline.xml")
}

tasks.register("bumpVersion") {
group = "publishing"

Expand Down
4 changes: 4 additions & 0 deletions config/detekt/baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<SmellBaseline>
<ManuallySuppressedIssues/>
</SmellBaseline>
Loading

0 comments on commit 93a39ee

Please sign in to comment.