Skip to content

Commit

Permalink
fixed detekt findings
Browse files Browse the repository at this point in the history
  • Loading branch information
belagertem committed Apr 8, 2024
1 parent a893873 commit 03048c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion sdccc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@
<configuration>
<buildUponDefaultConfig>true</buildUponDefaultConfig>
<config>dev_config/detekt.yml</config>
<autoCorrect>true</autoCorrect>
</configuration>
<executions>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
Expand Down

0 comments on commit 03048c2

Please sign in to comment.