Skip to content

Commit

Permalink
Update detekt rule set (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwendland authored Apr 3, 2024
1 parent c4f5d58 commit 7079558
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 874 deletions.
3 changes: 2 additions & 1 deletion buildSrc/src/main/kotlin/code-quality.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ tasks.jacocoTestReport {
// a merged report
tasks.withType<Detekt>().configureEach {
basePath = "${rootProject.projectDir.absolutePath}"
config.setFrom(files("$rootDir/detekt.yml"))
buildUponDefaultConfig = true
config.setFrom(rootDir.resolve("detekt.yml"))
}

// custom task for fixing formatting issues
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class CokoCpgIntegrationTest {
@MethodSource("threeFiles")
fun `test coko with cpg backend and permutation of three dependent spec files`(
specFiles: List<Path>,
@Suppress("detekt:style:UnusedParameter") // used for parameterized test names
fileNames: List<String>
) {
assertEquals(3, specFiles.size)
Expand Down Expand Up @@ -160,6 +161,7 @@ class CokoCpgIntegrationTest {
@MethodSource("fourFiles")
fun `test coko with cpg backend and permutation of four dependent spec files`(
specFiles: List<Path>,
@Suppress("detekt:style:UnusedParameter") // used for parameterized test names
fileNames: List<String>
) {
assertEquals(4, specFiles.size)
Expand Down Expand Up @@ -191,6 +193,7 @@ class CokoCpgIntegrationTest {
@MethodSource("fiveFiles")
fun `test coko with cpg backend and permutation of five dependent spec files`(
specFiles: List<Path>,
@Suppress("detekt:style:UnusedParameter") // used for parameterized test names
fileNames: List<String>
) {
assertEquals(5, specFiles.size)
Expand Down
Loading

0 comments on commit 7079558

Please sign in to comment.