[java] AvoidReassigningCatchVariables: fix missing lang attr, add to quickstart

This commit is contained in:
Andreas Dangel
2020-07-31 12:34:50 +02:00
parent 91579173fd
commit f975ebf7b3
2 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,7 @@ class Foo {
</rule> </rule>
<rule name="AvoidReassigningCatchVariables" <rule name="AvoidReassigningCatchVariables"
language="java"
since="6.27.0" since="6.27.0"
message="Avoid reassigning caught exception ''{0}''" message="Avoid reassigning caught exception ''{0}''"
class="net.sourceforge.pmd.lang.java.rule.bestpractices.AvoidReassigningCatchVariablesRule" class="net.sourceforge.pmd.lang.java.rule.bestpractices.AvoidReassigningCatchVariablesRule"

View File

@ -10,6 +10,7 @@
<!-- <rule ref="category/java/bestpractices.xml/AccessorMethodGeneration" /> --> <!-- <rule ref="category/java/bestpractices.xml/AccessorMethodGeneration" /> -->
<!-- <rule ref="category/java/bestpractices.xml/ArrayIsStoredDirectly" /> --> <!-- <rule ref="category/java/bestpractices.xml/ArrayIsStoredDirectly" /> -->
<!-- <rule ref="category/java/bestpractices.xml/AvoidPrintStackTrace" /> --> <!-- <rule ref="category/java/bestpractices.xml/AvoidPrintStackTrace" /> -->
<!-- <rule ref="category/java/bestpractices.xml/AvoidReassigningCatchVariables" /> -->
<!-- <rule ref="category/java/bestpractices.xml/AvoidReassigningLoopVariables" /> --> <!-- <rule ref="category/java/bestpractices.xml/AvoidReassigningLoopVariables" /> -->
<!-- <rule ref="category/java/bestpractices.xml/AvoidReassigningParameters" /> --> <!-- <rule ref="category/java/bestpractices.xml/AvoidReassigningParameters" /> -->
<rule ref="category/java/bestpractices.xml/AvoidMessageDigestField"/> <rule ref="category/java/bestpractices.xml/AvoidMessageDigestField"/>