Package | Description |
---|---|
com.puppycrawl.tools.checkstyle.checks |
Contains the checks that are bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.coding |
Contains the Coding checks that are
bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.design |
Contains the Class Design checks that
are bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.imports |
Contains the Imports checks that are
bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.indentation |
Contains all classes required for the
indentation check.
|
com.puppycrawl.tools.checkstyle.checks.javadoc |
Contains the Javadoc checks that are bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.metrics |
Contains the Metrics checks that are
bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.regexp |
Contains the regular expression checks that are bundled with the main
distribution.
|
com.puppycrawl.tools.checkstyle.checks.sizes |
Contains the Size Violations checks
that are bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.whitespace |
Contains the Whitespace checks that
are bundled with the main distribution.
|
Modifier and Type | Class and Description |
---|---|
class |
AvoidEscapedUnicodeCharactersCheck
Restrict using
Unicode escapes (such as
\u221e ). |
class |
DescendantTokenCheck
Checks for restricted tokens beneath other tokens.
|
class |
OuterTypeFilenameCheck
Checks that the outer type name and the file name match.
|
class |
UncommentedMainCheck
Detects uncommented main methods.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSuperCheck
Abstract class for checking that an overriding method with no parameters
invokes the super method.
|
class |
CovariantEqualsCheck
Checks that if a class defines a covariant method equals,
then it defines method equals(java.lang.Object).
|
class |
DeclarationOrderCheck
Checks that the parts of a class or interface declaration
appear in the order suggested by the
Code Conventions for the Java Programming Language.
|
class |
EqualsAvoidNullCheck
Checks that any combination of String literals
is on the left side of an equals() comparison.
|
class |
EqualsHashCodeCheck
Checks that classes that either override
equals() or hashCode() also
overrides the other. |
class |
FinalLocalVariableCheck
Ensures that local variables that never get their values changed,
must be declared final.
|
class |
HiddenFieldCheck
Checks that a local variable or a parameter does not shadow
a field that is defined in the same class.
|
class |
IllegalInstantiationCheck
Checks for illegal instantiations where a factory method is preferred.
|
class |
ModifiedControlVariableCheck
Check for ensuring that for loop control variables are not modified
inside the for block.
|
class |
MultipleStringLiteralsCheck
Checks for multiple occurrences of the same string literal within a
single file.
|
class |
NestedForDepthCheck
Check the number of nested
for -statements. |
class |
NestedIfDepthCheck
Restricts nested if-else blocks to a specified depth (default = 1).
|
class |
NestedTryDepthCheck
Restricts nested try-catch-finally blocks to a specified depth (default = 1).
|
class |
OneStatementPerLineCheck
Restricts the number of statements per line to one.
|
class |
PackageDeclarationCheck
Ensures there is a package declaration.
|
class |
ParameterAssignmentCheck
Disallow assignment of parameters.
|
class |
RequireThisCheck
Checks that code doesn't rely on the "this" default.
|
class |
ReturnCountCheck
Restricts the number of return statements in methods, constructors and lambda expressions
(2 by default).
|
class |
UnnecessaryParenthesesCheck
Checks if unnecessary parentheses are used in a statement or expression.
|
Modifier and Type | Class and Description |
---|---|
class |
FinalClassCheck
Checks that class which has only private ctors
is declared as final.
|
class |
InnerTypeLastCheck
Check nested (internal) classes/interfaces are declared at the bottom of the
class after all method and field declarations.
|
class |
MutableExceptionCheck
Ensures that exceptions (classes with names conforming to some regular
expression and explicitly extending classes with names conforming to other
regular expression) are immutable.
|
class |
OneTopLevelClassCheck
Checks that each top-level class, interface
or enum resides in a source file of its own.
|
class |
VisibilityModifierCheck
Checks visibility of class members.
|
Modifier and Type | Class and Description |
---|---|
class |
CustomImportOrderCheck
Checks that the groups of import declarations appear in the order specified
by the user.
|
class |
ImportControlCheck
Check that controls what packages can be imported in each package.
|
class |
ImportOrderCheck
Checks the ordering/grouping of imports.
|
class |
RedundantImportCheck
Checks for imports that are redundant.
|
class |
UnusedImportsCheck
Checks for unused import statements.
|
Modifier and Type | Class and Description |
---|---|
class |
IndentationCheck
Checks correct indentation of Java Code.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractTypeAwareCheck
Deprecated.
Checkstyle is not type aware tool and all Checks derived from this
class are potentially unstable.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractClassCouplingCheck
Base class for coupling calculation.
|
class |
BooleanExpressionComplexityCheck
Restricts nested boolean operators (&&, ||, &, | and ^) to
a specified depth (default = 3).
|
class |
CyclomaticComplexityCheck
Checks cyclomatic complexity against a specified limit.
|
class |
JavaNCSSCheck
This check calculates the Non Commenting Source Statements (NCSS) metric for
java source files and methods.
|
class |
NPathComplexityCheck
Checks the npath complexity against a specified limit (default = 200).
|
Modifier and Type | Class and Description |
---|---|
class |
RegexpCheck
A check that makes sure that a specified pattern exists (or not) in the file.
|
Modifier and Type | Class and Description |
---|---|
class |
ExecutableStatementCountCheck
Restricts the number of executable statements to a specified limit
(default = 30).
|
class |
MethodCountCheck
Checks the number of methods declared in each type declaration by access
modifier or total count.
|
class |
OuterTypeNumberCheck
Checks for the number of defined types at the "outer" level.
|
Modifier and Type | Class and Description |
---|---|
class |
GenericWhitespaceCheck
Checks that the whitespace around the Generic tokens (angle brackets)
"<" and ">" are correct to the typical convention.
|
Copyright © 2001–2018. All rights reserved.