| Class | Description |
|---|---|
| AccessorClassGenerationRule |
1.
|
| AccessorMethodGenerationRule | |
| AssignmentToNonFinalStaticRule | |
| AvoidDeeplyNestedIfStmtsRule | |
| AvoidReassigningParametersRule | |
| CloseResourceRule |
Makes sure you close your database connections.
|
| CompareObjectsWithEqualsRule | |
| ConfusingTernaryRule |
if (x != y) { diff(); } else { same(); } and(!x ? diff() : same()); |
| ConstructorCallsOverridableMethodRule |
Searches through all methods and constructors called from constructors.
|
| ExcessiveLengthRule |
This is a common super class for things which have excessive length.
|
| ExcessiveNodeCountRule |
This is a common super class for things which shouldn't have excessive nodes
underneath.
|
| FieldDeclarationsShouldBeAtStartOfClassRule |
Detects fields that are declared after methods, constructors, etc.
|
| 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.
|
| GodClassRule |
The God Class Rule detects a the God Class design flaw using metrics.
|
| IdempotentOperationsRule | |
| ImmutableFieldRule | |
| NonThreadSafeSingletonRule | |
| PositionalIteratorRule | |
| PreserveStackTraceRule | |
| SimplifyBooleanReturnsRule | |
| SingleMethodSingletonRule | |
| SingletonClassReturningNewInstanceRule | |
| SingularFieldRule | |
| SwitchDensityRule |
Switch Density - This is the number of statements over the number of
cases within a switch.
|
| UnnecessaryLocalBeforeReturnRule | |
| UnsynchronizedStaticDateFormatterRule |
Using a DateFormatter (SimpleDateFormatter) which is static can cause
unexpected results when used in a multi-threaded environment.
|
| UseCollectionIsEmptyRule |
Detect structures like "foo.size() == 0" and suggest replacing them with
foo.isEmpty().
|
| UseUtilityClassRule |
Copyright © 2002–2017 PMD. All rights reserved.