-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented a custom Detekt rule for JUnit 5
@TestFactory
functions…
… that don't have a valid return type. Improved Detekt configuration.
- Loading branch information
Showing
19 changed files
with
432 additions
and
1,117 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
27 changes: 27 additions & 0 deletions
27
build-logic/src/main/kotlin/org.sdkotlin.buildlogic.detekt-project.gradle.kts
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,27 @@ | ||
plugins { | ||
kotlin("jvm") | ||
// Version catalog type-safe accessors and extension not yet available in | ||
// plugins block of precompiled script plugins: | ||
// https://github.com/gradle/gradle/issues/15383 | ||
// alias(libs.plugins.detekt.gradle.plugin) | ||
id("io.gitlab.arturbosch.detekt") | ||
} | ||
|
||
dependencies { | ||
|
||
detektPlugins("org.sdkotlin.detekt:detekt-rules:1.0-SNAPSHOT") | ||
} | ||
|
||
tasks { | ||
named<Task>("check").configure { | ||
this.setDependsOn(this.dependsOn.filterNot { | ||
it is TaskProvider<*> && it.name == "detekt" | ||
}) | ||
|
||
val detektMain by existing | ||
dependsOn(detektMain) | ||
|
||
val detektTest by existing | ||
dependsOn(detektTest) | ||
} | ||
} |
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
Oops, something went wrong.