Skip to content

Commit

Permalink
#133: Reconfigure UseUtilityClass considering Spring Boot
Browse files Browse the repository at this point in the history
  • Loading branch information
dgroup committed Apr 27, 2022
1 parent 411c5fd commit a9a06b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ In addition to our custom/reconfigured rules we are using the latest stable pmd-
| [TooManyMethods](https://pmd.github.io/latest/pmd_rules_java_design.html#toomanymethods) | `pmd-java:6.44.0` | 🌵 |||
| [UseObjectForClearerAPI](https://pmd.github.io/latest/pmd_rules_java_design.html#useobjectforclearerapi) | `pmd-java:6.44.0` ||||
| [AtLeastOneConstructor](https://pmd.github.io/latest/pmd_rules_java_codestyle.html#atleastoneconstructor) | `pmd-java:6.44.0` ||||
| [UseUtilityClass](https://pmd.github.io/latest/pmd_rules_java_design.html#useutilityclass) | `pmd-java:6.44.0` | 🌵 |||

### How to use?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<exclude name="ExcessiveImports"/> <!-- @todo #/DEV ExcessiveImports: deep investigation is needed regarding purpose and goal of this this rule. Potentially improvement is needed. -->
<exclude name="LoosePackageCoupling"/> <!-- @todo #/DEV LoosePackageCoupling: deep investigation is needed regarding purpose and goal of this this rule. Potentially improvement is needed. -->
<exclude name="StdCyclomaticComplexity" /> <!-- deprecated -->
<exclude name="UseUtilityClass" />
</rule>
<rule ref="category/java/design.xml/CouplingBetweenObjects">
<properties>
Expand All @@ -74,6 +75,11 @@
<property name="maxfields" value="25"/>
</properties>
</rule>
<rule ref="category/java/design.xml/UseUtilityClass">
<properties>
<property name="ignoredAnnotations" value="lombok.experimental.UtilityClass|org.springframework.boot.autoconfigure.SpringBootApplication" />
</properties>
</rule>

<rule ref="category/java/documentation.xml">
<exclude name="CommentSize"/>
Expand Down

0 comments on commit a9a06b9

Please sign in to comment.