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

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

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

<ruleset name="Strict Exceptions"
    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>
These rules provide some strict guidelines about throwing and catching exceptions.
  </description>

    <!-- Rules, that have been moved into a category -->
    <rule ref="category/java/errorprone.xml/AvoidCatchingNPE" deprecated="true" />
    <rule ref="category/java/errorprone.xml/AvoidCatchingThrowable" deprecated="true" />
    <rule ref="category/java/errorprone.xml/AvoidLosingExceptionInformation" deprecated="true" />
    <rule ref="category/java/errorprone.xml/DoNotThrowExceptionInFinally" deprecated="true" />

    <rule ref="category/java/design.xml/AvoidCatchingGenericException" deprecated="true" />
    <rule ref="category/java/design.xml/AvoidRethrowingException" deprecated="true" />
    <rule ref="category/java/design.xml/AvoidThrowingNewInstanceOfSameException" deprecated="true" />
    <rule ref="category/java/design.xml/AvoidThrowingNullPointerException" deprecated="true" />
    <rule ref="category/java/design.xml/AvoidThrowingRawExceptionTypes" deprecated="true" />
    <rule ref="category/java/design.xml/DoNotExtendJavaLangError" deprecated="true" />
    <rule ref="category/java/design.xml/ExceptionAsFlowControl" deprecated="true" />
    <rule ref="category/java/design.xml/SignatureDeclareThrowsException" deprecated="true" />

</ruleset>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy