Files
Botania/spotless/pmd-ruleset.xml
T

28 lines
1.2 KiB
XML

<?xml version="1.0"?>
<ruleset name="Custom Rules"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>
Botania PMD rules
</description>
<!-- Rule descriptions: https://pmd.github.io/pmd-6.22.0/pmd_rules_java.html -->
<rule ref="category/java/bestpractices.xml/DoubleBraceInitialization" />
<rule ref="category/java/bestpractices.xml/MissingOverride" />
<rule ref="category/java/bestpractices.xml/PreserveStackTrace" />
<rule ref="category/java/bestpractices.xml/SystemPrintln" />
<rule ref="category/java/bestpractices.xml/UseTryWithResources" />
<rule ref="category/java/codestyle.xml/ControlStatementBraces" />
<!--<rule ref="category/java/codestyle.xml/UnnecessaryModifier" /> todo consider this one?-->
<rule ref="category/java/codestyle.xml/UseDiamondOperator" />
<rule ref="category/java/design.xml/SimplifiedTernary" />
<rule ref="category/java/errorprone.xml/UnnecessaryCaseChange" />
<rule ref="category/java/errorprone.xml/UseCorrectExceptionLogging" />
</ruleset>