From b38c63e22e2f1502820322195637f548bbf35783 Mon Sep 17 00:00:00 2001 From: mnhock Date: Sat, 9 Nov 2024 14:29:01 +0100 Subject: [PATCH] Fields should not match collection type name --- src/test/java/com/enofex/taikai/ArchitectureTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/enofex/taikai/ArchitectureTest.java b/src/test/java/com/enofex/taikai/ArchitectureTest.java index 5166b9d..6750b12 100644 --- a/src/test/java/com/enofex/taikai/ArchitectureTest.java +++ b/src/test/java/com/enofex/taikai/ArchitectureTest.java @@ -36,6 +36,7 @@ void shouldFulfilConstrains() { .shouldNotImport("org.junit..")) .naming(naming -> naming .packagesShouldMatchDefault() + .fieldsShouldNotMatch(".*(List|Set|Map)$") .classesShouldNotMatch(".*Impl") .interfacesShouldNotHavePrefixI() .constantsShouldFollowConventions()))