We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeb917d commit d13b2deCopy full SHA for d13b2de
1 file changed
.config/pmd/ruleset.xml
@@ -151,5 +151,12 @@
151
<exclude name="UseStringBufferForStringAppends"/>
152
</rule>
153
154
+ <rule ref="category/java/performance.xml/TooFewBranchesForSwitch">
155
+ <properties>
156
+ <!-- If you have one case only please use a if -->
157
+ <property name="minimumNumberCaseForASwitch" value="2"/>
158
+ </properties>
159
+ </rule>
160
+
161
<rule ref="category/java/security.xml"/>
162
</ruleset>
0 commit comments