Skip to content

Commit

Permalink
Deactivate LiteralsFirstInComparisons PMD rule.
Browse files Browse the repository at this point in the history
It makes more sense to avoid the https://errorprone
.info/bugpattern/YodaCondition.
  • Loading branch information
uhafner committed Nov 29, 2023
1 parent 2108b88 commit bc19003
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etc/pmd-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<description>Ullrich Hafner's PMD rules</description>

<rule ref="category/java/bestpractices.xml">
<exclude name="LiteralsFirstInComparisons"/>
<exclude name="JUnitTestContainsTooManyAsserts"/>
<exclude name="JUnitTestsShouldIncludeAssert"/>
<exclude name="JUnitAssertionsShouldIncludeMessage"/>
Expand Down

0 comments on commit bc19003

Please sign in to comment.