diff --git a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/VariableNamingConventionsRule.java b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/VariableNamingConventionsRule.java index ff1cc6caa2..19ca2c92a8 100644 --- a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/VariableNamingConventionsRule.java +++ b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/VariableNamingConventionsRule.java @@ -21,6 +21,7 @@ import net.sourceforge.pmd.lang.apex.ast.ApexNode; import net.sourceforge.pmd.lang.apex.rule.AbstractApexRule; import net.sourceforge.pmd.properties.PropertyDescriptor; +@Deprecated public class VariableNamingConventionsRule extends AbstractApexRule { private boolean checkMembers; diff --git a/pmd-apex/src/main/resources/category/apex/codestyle.xml b/pmd-apex/src/main/resources/category/apex/codestyle.xml index a73567c18b..06800f2403 100644 --- a/pmd-apex/src/main/resources/category/apex/codestyle.xml +++ b/pmd-apex/src/main/resources/category/apex/codestyle.xml @@ -305,6 +305,7 @@ public class Foo { @@ -312,6 +313,12 @@ public class Foo { A variable naming conventions rule - customize this to your liking. Currently, it checks for final variables that should be fully capitalized and non-final variables that should not include underscores. + +This rule is deprecated. The rule is replaced +by the more general rules {% rule apex/codestyle/FieldNamingConventions %}, +{% rule apex/codestyle/FormalParameterNamingConventions %}, +{% rule apex/codestyle/LocalVariableNamingConventions %}, and +{% rule apex/codestyle/PropertyNamingConventions %}. 1