Secure backup
This commit is contained in:
parent
61d59913bb
commit
bb55a5676c
115 changed files with 4698 additions and 393 deletions
|
|
@ -40,7 +40,9 @@ class KonsistTestTest {
|
|||
.functions()
|
||||
.withReturnType { it.name.endsWith("Presenter") }
|
||||
.withoutOverrideModifier()
|
||||
.assertTrue { functionDeclaration ->
|
||||
.assertTrue(
|
||||
additionalMessage = "The function can also be named 'createPresenter'. To please Konsist in this case, just remove the return type."
|
||||
) { functionDeclaration ->
|
||||
functionDeclaration.name == "create${functionDeclaration.returnType?.name}"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue