AtLeastOneConstructorRule |
This rule detects non-static classes with no constructors;
requiring even the default constructor to be explicit.
|
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());
|
EmptyControlStatementRule |
|
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.
|
LambdaCanBeMethodReferenceRule |
|
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.
|
UnnecessaryBoxingRule |
|
UnnecessaryCastRule |
Detects casts where the operand is already a subtype of the context
type, or may be converted to it implicitly.
|
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 |
Detects unnecessary imports.
|
UnnecessaryLocalBeforeReturnRule |
|
UnnecessaryModifierRule |
|
UnnecessaryReturnRule |
|
UseDiamondOperatorRule |
Checks usages of explicity type arguments in a constructor call that
may be replaced by a diamond (<> ).
|
UselessParenthesesRule |
|