From 03048c2420d7fb072fcf280d9fae77318253f0d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20Grebe-L=C3=BCth?= Date: Mon, 8 Apr 2024 08:13:32 +0200 Subject: [PATCH] fixed detekt findings --- sdccc/pom.xml | 1 - .../sdccc/architecture/KonsistArchitecturalRules.kt | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sdccc/pom.xml b/sdccc/pom.xml index 3bc0b3ce..078cb45a 100644 --- a/sdccc/pom.xml +++ b/sdccc/pom.xml @@ -491,7 +491,6 @@ true dev_config/detekt.yml - true diff --git a/sdccc/src/test/java/com/draeger/medical/sdccc/architecture/KonsistArchitecturalRules.kt b/sdccc/src/test/java/com/draeger/medical/sdccc/architecture/KonsistArchitecturalRules.kt index 28c8579f..78236855 100644 --- a/sdccc/src/test/java/com/draeger/medical/sdccc/architecture/KonsistArchitecturalRules.kt +++ b/sdccc/src/test/java/com/draeger/medical/sdccc/architecture/KonsistArchitecturalRules.kt @@ -14,12 +14,12 @@ class KonsistArchitecturalRules { @Test fun `requirement test classes in module 'sdccc' should end with 'Test'`() { - `the names of requirement test classes in module should end with 'Test'`(moduleName = "sdccc") + `the names of requirement test classes in module should end with 'Test'`("sdccc") } @Test fun `all requirement tests in module 'sdccc' should have annotations 'TestIdentifier' and 'TestDescription'`() { - `all requirement tests in module should have annotations 'TestIdentifier' and 'TestDescription'`(moduleName = "sdccc") + `all requirement tests in module should have annotations 'TestIdentifier' and 'TestDescription'`("sdccc") } companion object { @@ -31,7 +31,9 @@ class KonsistArchitecturalRules { } } - fun `all requirement tests in module should have annotations 'TestIdentifier' and 'TestDescription'`(moduleName: String) { + fun `all requirement tests in module should have annotations 'TestIdentifier' and 'TestDescription'`( + moduleName: String + ) { Konsist.scopeFromModule(moduleName).functions() .filter { it.resideInPackage("..direct..") || it.resideInPackage("..invariant..") } .withAnnotationOf(org.junit.jupiter.api.Test::class)