| Class | Description |
|---|---|
| AvoidDollarSignsRule | |
| ClassNamingConventionsRule |
Configurable naming conventions for type declarations.
|
| CommentDefaultAccessModifierRule |
Check for Methods, Fields and Nested Classes that have a default access
modifier
|
| ConfusingTernaryRule |
if (x != y) { diff(); } else { same(); } and(!x ? diff() : same()); |
| DontImportJavaLangRule | |
| DuplicateImportsRule | |
| FieldDeclarationsShouldBeAtStartOfClassRule |
Detects fields that are declared after methods, constructors, etc.
|
| LocalVariableCouldBeFinalRule | |
| MethodArgumentCouldBeFinalRule | |
| MethodNamingConventionsRule | |
| OnlyOneReturnRule | |
| PrematureDeclarationRule |
Checks for variables in methods that are defined before they are really
needed.
|
| UnnecessaryAnnotationValueElementRule | |
| 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.
|
| UnnecessaryFullyQualifiedNameRule | |
| UnnecessaryLocalBeforeReturnRule | |
| UnnecessaryModifierRule | |
| UnnecessaryReturnRule | |
| VariableNamingConventionsRule |
Copyright © 2002–2018 PMD. All rights reserved.