Secure backup

This commit is contained in:
Benoit Marty 2023-10-27 11:14:00 +02:00 committed by Benoit Marty
parent bf905dd79b
commit 9807ebf649
115 changed files with 4698 additions and 393 deletions

View file

@ -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}"
}
}