| Class | Description |
|---|---|
| AssignmentToNonFinalStatic | |
| CompareObjectsWithEquals | |
| ConfusingTernary |
if (x != y) { diff(); } else { same(); } and
(!x ? diff() : same());. |
| ExceptionAsFlowControl |
Catches the use of exception statements as a flow control device.
|
| 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.
|
| 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.
|
| ImmutableField | |
| LongClassRule |
This rule detects when a class exceeds a certain
threshold.
|
| LongMethodRule |
This rule detects when a method exceeds a certain
threshold.
|
| LongParameterListRule |
This rule detects an abnormally long parameter list.
|
| LooseCoupling | |
| NonThreadSafeSingleton | |
| NpathComplexity |
NPath complexity is a measurement of the acyclic execution paths through a
function.
|
| NullAssignmentRule | |
| OnlyOneReturnRule | |
| PositionalIteratorRule | |
| PreserveStackTrace | |
| SingularField | |
| SwitchDensityRule | |
| TooManyFields | |
| UnnecessaryLocalBeforeReturn | |
| UnsynchronizedStaticDateFormatter |
Using a DateFormatter (SimpleDateFormatter) which is static can cause
unexpected results when used in a multi threaded environment.
|
| UseCollectionIsEmpty |
Detect structures like "foo.size() == 0" and suggest replacing them with
foo.isEmpty().
|
| UseSingleton |