All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rulesets.java.basic.xml Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
<?xml version="1.0"?>

<ruleset name="Basic"
    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 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
  <description>
The Basic ruleset contains a collection of good practices which should be followed.
  </description>

    <!-- Rules, that have been moved into a category -->
    <rule ref="category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop" deprecated="true" />
    <rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor" deprecated="true" />
    <rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators" deprecated="true" />
    <rule ref="category/java/errorprone.xml/AvoidUsingOctalValues" deprecated="true" />
    <rule ref="category/java/errorprone.xml/BrokenNullCheck" deprecated="true" />
    <rule ref="category/java/errorprone.xml/CheckSkipResult" deprecated="true" />
    <rule ref="category/java/errorprone.xml/ClassCastExceptionWithToArray" deprecated="true" />
    <rule ref="category/java/errorprone.xml/DontUseFloatTypeForLoopIndices" deprecated="true" />
    <rule ref="category/java/errorprone.xml/JumbledIncrementer" deprecated="true" />
    <rule ref="category/java/errorprone.xml/MisplacedNullCheck" deprecated="true" />
    <rule ref="category/java/errorprone.xml/OverrideBothEqualsAndHashcode" deprecated="true" />
    <rule ref="category/java/errorprone.xml/ReturnFromFinallyBlock" deprecated="true" />
    <rule ref="category/java/errorprone.xml/UnconditionalIfStatement" deprecated="true" />

    <rule ref="category/java/multithreading.xml/AvoidThreadGroup" deprecated="true" />
    <rule ref="category/java/multithreading.xml/DontCallThreadRun" deprecated="true" />
    <rule ref="category/java/multithreading.xml/DoubleCheckedLocking" deprecated="true" />

    <rule ref="category/java/bestpractices.xml/AvoidUsingHardCodedIP" deprecated="true" />
    <rule ref="category/java/bestpractices.xml/CheckResultSet" deprecated="true" />

    <rule ref="category/java/codestyle.xml/ExtendsObject" deprecated="true" />
    <rule ref="category/java/codestyle.xml/ForLoopShouldBeWhileLoop" deprecated="true" />

    <rule ref="category/java/performance.xml/BigIntegerInstantiation" deprecated="true" />
<!--    <rule ref="category/java/performance.xml/BooleanInstantiation" deprecated="true" />-->

    <rule ref="category/java/design.xml/CollapsibleIfStatements" deprecated="true" />
    <rule ref="category/java/design.xml/SimplifiedTernary" deprecated="true" />

</ruleset>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy