Skip to content

Commit

Permalink
update pmd rules
Browse files Browse the repository at this point in the history
Signed-off-by: neo <1100909+neowu@users.noreply.github.com>
  • Loading branch information
neowu committed Nov 11, 2024
1 parent 9fb49a7 commit 7cc138f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion buildSrc/src/main/check/pmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@
<rule ref="category/java/performance.xml/OptimizableToArrayCall"/>
<rule ref="category/java/performance.xml/StringInstantiation"/>
<rule ref="category/java/performance.xml/StringToString"/>
<rule ref="category/java/performance.xml/TooFewBranchesForSwitch"/>
<rule ref="category/java/performance.xml/TooFewBranchesForSwitch">
<properties>
<property name="minimumNumberCaseForASwitch" value="2"/>
</properties>
</rule>
<rule ref="category/java/performance.xml/UseArraysAsList"/>
<rule ref="category/java/performance.xml/UseIndexOfChar"/>
<rule ref="category/java/performance.xml/UselessStringValueOf"/>
Expand Down

0 comments on commit 7cc138f

Please sign in to comment.