[doc] ShortVariable now also reports short enum constant names

Refs #3123
This commit is contained in:
Andreas Dangel
2023-04-27 10:33:18 +02:00
parent bebe05bd8e
commit bd13b3915c
3 changed files with 3 additions and 1 deletions

View File

@ -246,6 +246,7 @@ Contributors: [Lucas Soncini](https://github.com/lsoncini) (@lsoncini),
* {% rule java/codestyle/MethodNamingConventions %}: The property `checkNativeMethods` has been removed. The
property was deprecated since PMD 6.3.0. Use the property `nativePattern` to control whether native methods
should be considered or not.
* {% rule java/codestyle/ShortVariable %}: This rule now also reports short enum constant names.
* {% rule java/codestyle/UseDiamondOperator %}: The property `java7Compatibility` has been removed. The rule now
handles Java 7 properly without a property.
* {% rule java/codestyle/UnnecessaryFullyQualifiedName %}: The rule has two new properties,

View File

@ -581,6 +581,7 @@ Related issue: [[core] Explicitly name all language versions (#4120)](https://gi
* {% rule java/codestyle/MethodNamingConventions %}: The property `checkNativeMethods` has been removed. The
property was deprecated since PMD 6.3.0. Use the property `nativePattern` to control whether native methods
should be considered or not.
* {% rule java/codestyle/ShortVariable %}: This rule now also reports short enum constant names.
* {% rule java/codestyle/UseDiamondOperator %}: The property `java7Compatibility` has been removed. The rule now
handles Java 7 properly without a property.
* {% rule java/codestyle/UnnecessaryFullyQualifiedName %}: The rule has two new properties,

View File

@ -1392,7 +1392,7 @@ public class ShortMethod {
class="net.sourceforge.pmd.lang.rule.XPathRule"
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_java_codestyle.html#shortvariable">
<description>
Fields, local variables, or parameter names that are very short are not helpful to the reader.
Fields, local variables, enum constant names or parameter names that are very short are not helpful to the reader.
</description>
<priority>3</priority>
<properties>