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

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

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

<ruleset name="Controversial"
    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 Controversial ruleset contains rules that, for whatever reason, are considered controversial.
They are held here to allow people to include them as they see fit within their custom rulesets.
  </description>

    <!-- Rules, that have been moved into a category -->
    <rule ref="category/java/errorprone.xml/AssignmentInOperand" deprecated="true" />
    <rule ref="category/java/errorprone.xml/AvoidAccessibilityAlteration" deprecated="true" />
    <rule ref="category/java/errorprone.xml/AvoidLiteralsInIfCondition" deprecated="true" />
    <!-- Removed in PMD 7. -->
    <!--    <rule ref="category/java/errorprone.xml/DataflowAnomalyAnalysis" deprecated="true" />-->
    <rule ref="category/java/errorprone.xml/DoNotCallGarbageCollectionExplicitly" deprecated="true" />
    <rule ref="category/java/errorprone.xml/DontImportSun" deprecated="true" />
    <rule ref="category/java/errorprone.xml/NullAssignment" deprecated="true" />
    <rule ref="category/java/errorprone.xml/SuspiciousOctalEscape" deprecated="true" />

    <rule ref="category/java/codestyle.xml/AtLeastOneConstructor" deprecated="true" />
    <rule ref="category/java/codestyle.xml/AvoidUsingNativeCode" deprecated="true" />
    <rule ref="category/java/codestyle.xml/CallSuperInConstructor" deprecated="true" />
<!--    <rule ref="category/java/codestyle.xml/DefaultPackage" deprecated="true" />-->
    <rule ref="category/java/codestyle.xml/OnlyOneReturn" deprecated="true" />
    <rule ref="category/java/codestyle.xml/UnnecessaryConstructor" deprecated="true" />

    <rule ref="category/java/multithreading.xml/AvoidUsingVolatile" deprecated="true" />
    <rule ref="category/java/multithreading.xml/UseConcurrentHashMap" deprecated="true" />

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

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

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

    <!-- The rule UnnecessaryParentheses has been merged into unnecessary.xml/UselessParentheses,
         which now lives in codestyle -->
    <rule name="UnnecessaryParentheses" deprecated="true" ref="category/java/codestyle.xml/UselessParentheses" />

</ruleset>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy