igor.wojda
05/29/2024, 1:21 PMstelios
05/29/2024, 3:38 PMPoisonedYouth
06/04/2024, 10:00 AMPoisonedYouth
06/04/2024, 10:06 AM// Rule
fun KoScope.verifyRepositoryNamingConvention() {
this.interfaces()
.withAnnotationOf(Repository::class)
.assertTrue {
it.name.endsWith("Repository")
}
}
// Usage
Konsist.scopeFromProduction().verifyRepositoryNamingConvention()
igor.wojda
06/05/2024, 11:52 AMPoisonedYouth
06/05/2024, 11:56 AMigor.wojda
06/05/2024, 1:05 PMPoisonedYouth
06/05/2024, 1:23 PMigor.wojda
06/10/2024, 2:54 PMPoisonedYouth
06/10/2024, 7:00 PMigor.wojda
06/10/2024, 7:01 PMPoisonedYouth
06/10/2024, 7:07 PMigor.wojda
06/10/2024, 7:14 PMPoisonedYouth
06/10/2024, 7:54 PM