Skip to content

Commit

Permalink
Add new taikan rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mnhock committed Jun 29, 2024
1 parent b00a05e commit b023877
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ void shouldFulfilConstrains() {
.test(test -> test
.junit5(junit5 -> junit5
.classesShouldNotBeAnnotatedWithDisabled()
.methodsShouldNotBeAnnotatedWithDisabled()))
.classesShouldBePackagePrivate(".*Test")
.methodsShouldNotBeAnnotatedWithDisabled()
.methodsShouldBePackagePrivate()))
.java(java -> java
.finalClassesShouldNotHaveProtectedMembers()
.fieldsShouldNotBePublic()
.methodsShouldNotDeclareGenericExceptions()
.serialVersionUIDFieldsShouldBeStaticFinalLong()
.noUsageOfDeprecatedAPIs()
.utilityClassesShouldBeFinalAndHavePrivateConstructor()
.classesShouldImplementHashCodeAndEquals()
Expand All @@ -24,6 +30,8 @@ void shouldFulfilConstrains() {
.shouldNotImport("..lombok..")
.shouldNotImport("org.junit.."))
.naming(naming -> naming
.packagesShouldMatch("com.enofex.naikan.model")
.constantsShouldFollowConventions()
.classesShouldNotMatch(".*Impl")
.interfacesShouldNotHavePrefixI()))
.build();
Expand Down

0 comments on commit b023877

Please sign in to comment.