diff --git a/pmd/rulesets/naming.xml b/pmd/rulesets/naming.xml index 599e5c1d38..99faf659c1 100644 --- a/pmd/rulesets/naming.xml +++ b/pmd/rulesets/naming.xml @@ -11,10 +11,10 @@ The Naming Ruleset contains a collection of rules about names - too long, too sh + externalInfoUrl="http://pmd.sourceforge.net/rules/naming.html#ShortVariable"> Detects when a field, local, or parameter has a very short name. @@ -238,7 +238,7 @@ public class MyClass { @@ -259,7 +259,7 @@ public class Foo { @@ -292,11 +292,10 @@ public class Foo { - The method name and parameter number are suspiciously close to @@ -347,7 +346,7 @@ public class Foo { @@ -367,7 +366,7 @@ public class Foo extends Bar { @@ -392,9 +391,9 @@ public class Foo { Detects when a class or interface does not have a package definition. @@ -419,9 +418,9 @@ public class ClassInDefaultPackage { Detects when a package definition contains upper case characters. @@ -479,10 +478,10 @@ indicates a field and thus is confusing. + since="4.0" + message="A 'getX()' method which returns a boolean should be named 'isX()'" + class="net.sourceforge.pmd.rules.XPathRule" + externalInfoUrl="http://pmd.sourceforge.net/rules/naming.html#BooleanGetMethodName"> Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()'. @@ -514,10 +513,10 @@ public boolean getFoo(boolean bar); // ok, unless checkParameterizedMethods=true + since="4.2.6" + message="Generics names should be a one letter long and upper case." + class="net.sourceforge.pmd.rules.XPathRule" + externalInfoUrl="http://pmd.sourceforge.net/rules/naming.html#GenericsNaming"> Generics names should be a one letter long and upper case.