AtLeastOneConstructorRule |
This rule detects non-static classes with no constructors;
requiring even the default constructor to be explicit.
|
AvoidDollarSignsRule |
|
ClassNamingConventionsRule |
Configurable naming conventions for type declarations.
|
CommentDefaultAccessModifierRule |
Check for Methods, Fields and Nested Classes that have a default access
modifier
This rule ignores all nodes annotated with @VisibleForTesting by default.
|
ConfusingTernaryRule |
if (x != y) { diff(); } else { same(); } and
(!x ? diff() : same());
|
DontImportJavaLangRule |
|
DuplicateImportsRule |
Deprecated. |
FieldDeclarationsShouldBeAtStartOfClassRule |
Detects fields that are declared after methods, constructors, etc.
|
FieldNamingConventionsRule |
Configurable naming conventions for field declarations.
|
FormalParameterNamingConventionsRule |
Enforces a naming convention for lambda and method parameters.
|
IdenticalCatchBranchesRule |
Flags identical catch branches, which can be collapsed into a multi-catch.
|
LinguisticNamingRule |
|
LocalVariableCouldBeFinalRule |
|
LocalVariableNamingConventionsRule |
Enforces a naming convention for local variables and other locally scoped variables.
|
MethodArgumentCouldBeFinalRule |
|
MethodNamingConventionsRule |
|
OnlyOneReturnRule |
|
PrematureDeclarationRule |
Checks for variables in methods that are defined before they are really
needed.
|
UnnecessaryAnnotationValueElementRule |
|
UnnecessaryCastRule |
This is a rule, that detects unnecessary casts when using Java 1.5 generics
and collections.
|
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 |
|
UnnecessaryImportRule |
|
UnnecessaryLocalBeforeReturnRule |
|
UnnecessaryModifierRule |
|
UnnecessaryReturnRule |
|
VariableNamingConventionsRule |
Deprecated. |