Skip to content

Commit

Permalink
Apply UnnecessarySemicolonInEnumeration Checkstyle module
Browse files Browse the repository at this point in the history
This commit also applies it to this project itself and fixes its violations.
  • Loading branch information
izeye committed Mar 23, 2024
1 parent 7db7c97 commit 723779f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
<module name="com.puppycrawl.tools.checkstyle.checks.UpperEllCheck" />
<module name="com.puppycrawl.tools.checkstyle.checks.ArrayTypeStyleCheck" />
<module name="com.puppycrawl.tools.checkstyle.checks.OuterTypeFilenameCheck" />
<module name="UnnecessarySemicolonInEnumeration"/>

<!-- Modifiers -->
<module name="com.puppycrawl.tools.checkstyle.checks.modifier.RedundantModifierCheck" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void loadShouldLoadChecks() {
assertThat(checks).hasSize(5);
TreeWalker treeWalker = (TreeWalker) checks.toArray()[4];
Set<?> ordinaryChecks = (Set<?>) Extractors.byName("ordinaryChecks").extract(treeWalker);
assertThat(ordinaryChecks).hasSize(60);
assertThat(ordinaryChecks).hasSize(61);
}

@Test
Expand All @@ -59,7 +59,7 @@ public void loadWithExcludeShouldExcludeChecks() {
assertThat(checks).hasSize(5);
TreeWalker treeWalker = (TreeWalker) checks.toArray()[4];
Set<?> ordinaryChecks = (Set<?>) Extractors.byName("ordinaryChecks").extract(treeWalker);
assertThat(ordinaryChecks).hasSize(59);
assertThat(ordinaryChecks).hasSize(60);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ enum Phase {
/**
* Apply the preparator after wrapping.
*/
POST_WRAPPING;
POST_WRAPPING

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ enum Phase {
/**
* Apply the preparator after wrapping.
*/
POST_WRAPPING;
POST_WRAPPING

}

Expand Down
1 change: 1 addition & 0 deletions src/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
<module name="com.puppycrawl.tools.checkstyle.checks.UpperEllCheck" />
<module name="com.puppycrawl.tools.checkstyle.checks.ArrayTypeStyleCheck" />
<module name="com.puppycrawl.tools.checkstyle.checks.OuterTypeFilenameCheck" />
<module name="UnnecessarySemicolonInEnumeration"/>

<!-- Modifiers -->
<module name="com.puppycrawl.tools.checkstyle.checks.modifier.RedundantModifierCheck" />
Expand Down

0 comments on commit 723779f

Please sign in to comment.