Uses of Class
net.sourceforge.pmd.lang.java.rule.AbstractJavaRule
-
Packages that use AbstractJavaRule Package Description net.sourceforge.pmd.lang.java.dfa net.sourceforge.pmd.lang.java.rule Contains the built-in rules bundled with the Java distribution.net.sourceforge.pmd.lang.java.rule.bestpractices net.sourceforge.pmd.lang.java.rule.codestyle net.sourceforge.pmd.lang.java.rule.design net.sourceforge.pmd.lang.java.rule.documentation net.sourceforge.pmd.lang.java.rule.errorprone net.sourceforge.pmd.lang.java.rule.multithreading net.sourceforge.pmd.lang.java.rule.performance net.sourceforge.pmd.lang.java.rule.security -
-
Uses of AbstractJavaRule in net.sourceforge.pmd.lang.java.dfa
Subclasses of AbstractJavaRule in net.sourceforge.pmd.lang.java.dfa Modifier and Type Class Description class
JavaDFAGraphRule
Deprecated.Only used by the deprecated designer -
Uses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule
Subclasses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule Modifier and Type Class Description class
AbstractIgnoredAnnotationRule
Deprecated.Internal APIclass
AbstractInefficientZeroCheck
Deprecated.Internal APIclass
AbstractJavaMetricsRule
Deprecated.Internal APIclass
AbstractJUnitRule
Deprecated.Internal APIclass
AbstractLombokAwareRule
Deprecated.Internal APIclass
AbstractPoorMethodCall
Deprecated.Internal APIclass
AbstractStatisticalJavaRule
Deprecated.seeStatisticalRule
class
GenericLiteralCheckerRule
This class allow to match a Literal (most likely a String) with a regex pattern.class
StringConcatenationRule
class
SymbolTableTestRule
Deprecated.This is a test rule and should not have been added to the main source.class
UselessAssignment
-
Uses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.bestpractices
-
Uses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.codestyle
Subclasses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.codestyle Modifier and Type Class Description class
AtLeastOneConstructorRule
This rule detects non-static classes with no constructors; requiring even the default constructor to be explicit.class
AvoidDollarSignsRule
class
ClassNamingConventionsRule
Configurable naming conventions for type declarations.class
CommentDefaultAccessModifierRule
Check for Methods, Fields and Nested Classes that have a default access modifier This rule ignores all nodes annotated with @VisibleForTesting by default.class
ConfusingTernaryRule
if (x != y) { diff(); } else { same(); }
and
(!x ? diff() : same());
class
DontImportJavaLangRule
class
DuplicateImportsRule
Deprecated.class
FieldDeclarationsShouldBeAtStartOfClassRule
Detects fields that are declared after methods, constructors, etc.class
FieldNamingConventionsRule
Configurable naming conventions for field declarations.class
FormalParameterNamingConventionsRule
Enforces a naming convention for lambda and method parameters.class
IdenticalCatchBranchesRule
Flags identical catch branches, which can be collapsed into a multi-catch.class
LinguisticNamingRule
class
LocalVariableCouldBeFinalRule
class
LocalVariableNamingConventionsRule
Enforces a naming convention for local variables and other locally scoped variables.class
MethodArgumentCouldBeFinalRule
class
MethodNamingConventionsRule
class
OnlyOneReturnRule
class
PrematureDeclarationRule
Checks for variables in methods that are defined before they are really needed.class
UnnecessaryAnnotationValueElementRule
class
UnnecessaryCastRule
This is a rule, that detects unnecessary casts when using Java 1.5 generics and collections.class
UnnecessaryConstructorRule
This rule detects when a constructor is not necessary; i.e., when there is only one constructor, it’s public, has an empty body, and takes no arguments.class
UnnecessaryFullyQualifiedNameRule
class
UnnecessaryImportRule
class
UnnecessaryLocalBeforeReturnRule
class
UnnecessaryModifierRule
class
UnnecessaryReturnRule
class
VariableNamingConventionsRule
Deprecated. -
Uses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.design
Subclasses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.design Modifier and Type Class Description class
AbstractNcssCountRule
Deprecated.Internal APIclass
AvoidDeeplyNestedIfStmtsRule
class
AvoidThrowingNullPointerExceptionRule
Findsthrow
statements containingNullPointerException
instances as thrown valuesclass
CognitiveComplexityRule
Cognitive complexity rule.class
CouplingBetweenObjectsRule
CouplingBetweenObjects attempts to capture all unique Class attributes, local variables, and return types to determine how many objects a class is coupled to.class
CyclomaticComplexityRule
Cyclomatic complexity rule using metrics.class
DataClassRule
class
ExceptionAsFlowControlRule
Catches the use of exception statements as a flow control device.class
ExcessiveClassLengthRule
This rule detects when a class exceeds a certain threshold.class
ExcessiveImportsRule
ExcessiveImports attempts to count all unique imports a class contains.class
ExcessiveLengthRule
This is a common super class for things which have excessive length.class
ExcessiveMethodLengthRule
This rule detects when a method exceeds a certain threshold.class
ExcessiveNodeCountRule
This is a common super class for things which shouldn't have excessive nodes underneath.class
ExcessiveParameterListRule
This rule detects an abnormally long parameter list.class
ExcessivePublicCountRule
Rule attempts to count all public methods and public attributes defined in a class.class
GenericClassCounterRule
A generic rule that can be configured to "count" classes of certain type based on either their name (full name, prefix, suffixes anything can be matched with a regex), and/or their type.class
GodClassRule
The God Class Rule detects the God Class design flaw using metrics.class
ImmutableFieldRule
class
LawOfDemeterRule
This rule can detect possible violations of the Law of Demeter.class
LoosePackageCouplingRule
The loose package coupling Rule can be used to ensure coupling outside of a package hierarchy is minimized to all but an allowed set of classes from within the package hierarchy.class
ModifiedCyclomaticComplexityRule
Deprecated.class
NcssConstructorCountRule
Deprecated.class
NcssCountRule
Simple rule for Ncss.class
NcssMethodCountRule
Deprecated.class
NcssTypeCountRule
Deprecated.class
NPathComplexityRule
Simple n-path complexity rule.class
PositionalIteratorRule
class
SignatureDeclareThrowsExceptionRule
A method/constructor shouldn't explicitly throw java.lang.Exception, since it is unclear which exceptions that can be thrown from the methods.class
SimplifyBooleanReturnsRule
class
SingularFieldRule
class
StdCyclomaticComplexityRule
Deprecated.class
SwitchDensityRule
Switch Density - This is the number of statements over the number of cases within a switch.class
TooManyFieldsRule
class
UselessOverridingMethodRule
class
UseUtilityClassRule
-
Uses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.documentation
Subclasses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.documentation Modifier and Type Class Description class
AbstractCommentRule
Deprecated.Internal APIclass
CodeInCommentsRule
class
CommentContentRule
A rule that checks for illegal words in the comment text.class
CommentRequiredRule
class
CommentSizeRule
A rule to manage those who just can't shut up...class
HeaderCommentsRule
Restrictions regarding the legal placement and content of the file header.class
JavadocRule
-
Uses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.errorprone
-
Uses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.multithreading
Subclasses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.multithreading Modifier and Type Class Description class
DoubleCheckedLockingRule
void method() { if (x == null) { synchronized(this){ if (x == null) { x = new | method(); } } } }class
NonThreadSafeSingletonRule
class
UnsynchronizedStaticDateFormatterRule
Deprecated.This rule is being replaced byUnsynchronizedStaticFormatterRule
.class
UnsynchronizedStaticFormatterRule
Using a Formatter (e.g. -
Uses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.performance
Subclasses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.performance Modifier and Type Class Description class
AbstractOptimizationRule
Deprecated.Internal APIclass
AppendCharacterWithCharRule
This rule finds the following:class
AvoidInstantiatingObjectsInLoopsRule
class
BigIntegerInstantiationRule
Rule that marks instantiations of newBigInteger
orBigDecimal
objects, when there is a well-known constant available, such asBigInteger.ZERO
.class
BooleanInstantiationRule
Avoid instantiating Boolean objects; you can reference Boolean.TRUE, Boolean.FALSE, or call Boolean.valueOf() instead.class
ConsecutiveAppendsShouldReuseRule
class
ConsecutiveLiteralAppendsRule
This rule finds concurrent calls to StringBuffer/Builder.append where String literals are used It would be much better to make these calls using one call to.append
class
InefficientEmptyStringCheckRule
This rule finds code which inefficiently determines empty strings.class
InefficientStringBufferingRule
How this rule works: find additive expressions: + check that the addition is between anything other than two literals if true and also the parent is StringBuffer constructor or append, report a violation.class
InsufficientStringBufferDeclarationRule
This rule finds StringBuffers which may have been pre-sized incorrectly.class
RedundantFieldInitializerRule
Detects redundant field initializers, i.e.class
StringInstantiationRule
class
StringToStringRule
Finds toString() call on String object.class
UnnecessaryWrapperObjectCreationRule
class
UseIndexOfCharRule
class
UselessStringValueOfRule
class
UseStringBufferForStringAppendsRule
class
UseStringBufferLengthRule
This rule finds places where StringBuffer.toString() is called just to see if the string is 0 length by either using .equals("") or toString().length(). -
Uses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.security
Subclasses of AbstractJavaRule in net.sourceforge.pmd.lang.java.rule.security Modifier and Type Class Description class
HardCodedCryptoKeyRule
Finds hard coded encryption keys that are passed to javax.crypto.spec.SecretKeySpec(key, algorithm).class
InsecureCryptoIvRule
Finds hardcoded static Initialization Vectors vectors used with cryptographic operations.
-