Skip to content

Commit

Permalink
Correct java naming messages
Browse files Browse the repository at this point in the history
Closes gh-57
  • Loading branch information
mnhock committed Jun 23, 2024
1 parent 9d793d5 commit 537364f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/com/enofex/taikai/java/NamingConfigurer.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public NamingConfigurer classesAnnotatedWithShouldMatch(
return addRule(TaikaiRule.of(classes()
.that().areMetaAnnotatedWith(annotationType)
.should().haveNameMatching(regex)
.as("Classes annotated with %s should not have names matching %s".formatted(
.as("Classes annotated with %s should have names matching %s".formatted(
annotationType.getName(), regex)), configuration));
}

Expand All @@ -57,7 +57,7 @@ public NamingConfigurer classesAnnotatedWithShouldMatch(String annotationType, S
return addRule(TaikaiRule.of(classes()
.that().areMetaAnnotatedWith(annotationType)
.should().haveNameMatching(regex)
.as("Classes annotated with %s should not have names matching %s".formatted(
.as("Classes annotated with %s should have names matching %s".formatted(
annotationType, regex)), configuration));
}

Expand All @@ -71,7 +71,7 @@ public NamingConfigurer methodsAnnotatedWithShouldMatch(
return addRule(TaikaiRule.of(methods()
.that().areMetaAnnotatedWith(annotationType)
.should().haveNameMatching(regex)
.as("Methods annotated with %s should not have names matching %s".formatted(
.as("Methods annotated with %s should have names matching %s".formatted(
annotationType.getName(), regex)), configuration));
}

Expand All @@ -85,7 +85,7 @@ public NamingConfigurer methodsAnnotatedWithShouldMatch(String annotationType, S
return addRule(TaikaiRule.of(methods()
.that().areMetaAnnotatedWith(annotationType)
.should().haveNameMatching(regex)
.as("Methods annotated with %s should not have names matching %s".formatted(
.as("Methods annotated with %s should have names matching %s".formatted(
annotationType, regex)), configuration));
}

Expand All @@ -109,7 +109,7 @@ public NamingConfigurer fieldsAnnotatedWithShouldMatch(
return addRule(TaikaiRule.of(fields()
.that().areMetaAnnotatedWith(annotationType)
.should().haveNameMatching(regex)
.as("Fields annotated with %s should not have names matching %s".formatted(
.as("Fields annotated with %s should have names matching %s".formatted(
annotationType.getName(), regex)), configuration));
}

Expand All @@ -122,7 +122,7 @@ public NamingConfigurer fieldsAnnotatedWithShouldMatch(String annotationType, St
return addRule(TaikaiRule.of(fields()
.that().areMetaAnnotatedWith(annotationType)
.should().haveNameMatching(regex)
.as("Fields annotated with %s should not have names matching %s".formatted(
.as("Fields annotated with %s should have names matching %s".formatted(
annotationType, regex)), configuration));
}

Expand Down

0 comments on commit 537364f

Please sign in to comment.