Package com.puppycrawl.tools.checkstyle.checks

Contains the checks that are bundled with the main distribution.

See:
          Description

Class Summary
AbstractFormatCheck Abstract class for checks that verify strings using a regular expression.
AbstractImportCheck Abstract class that provides helper functionality for determining an import name.
AbstractNameCheck Abstract class for checking that names conform to a specified format.
AbstractOption Abstract class that represents options.
AbstractOptionCheck Abstract class for checks with options.
ArrayTypeStyleCheck Checks the style of array type definitions.
AvoidInlineConditionalsCheck Detects inline conditionals.
AvoidNestedBlocksCheck Finds nested blocks.
AvoidStarImportCheck Check that finds import statements that use the * notation.
BlockOption Represents the policy for checking block statements.
ConstantNameCheck Checks that constant names conform to a format specified by the format property.
DesignForExtensionCheck Checks that classes are designed for inheritance.
DoubleCheckedLockingCheck Detect the double-checked locking idiom, a technique that tries to avoid synchronization overhead but is incorrect because of subtle artifacts of the java memory model.
EmptyBlockCheck Checks for empty blocks.
EmptyForIteratorPadCheck Checks the padding of an empty for iterator; that is whether a space is required at an empty for iterator, or such spaces are forbidden.
EmptyStatementCheck Check that finds empty statements.
EqualsHashCodeCheck Checks that classes that override equals() also override hashCode().
FileLengthCheck Checks for long source files.
FinalClassCheck Checks that class which has only private ctors is declared as final.
FinalParametersCheck Check that method/constructor parameters are final.
GenericIllegalRegexpCheck A generic check for code problems, the user can search for any pattern.
HeaderCheck Checks the header of the source against a fixed header file.
HiddenFieldCheck Checks that a local variable or a parameter does not shadow a field that is defined in the same class.
HideUtilityClassConstructorCheck Make sure that utility classes (classes that contain only static methods) do not have a public constructor.
IllegalImportCheck Checks for imports from a set of illegal packages.
IllegalInstantiationCheck Checks for illegal instantiations where a factory method is preferred.
IndentationCheck Checks correct indentation of Java Code.
InnerAssignmentCheck Checks for assignments in subexpressions, such as in String s = Integer.toString(i = 2);.
InterfaceIsTypeCheck Implements Bloch, Effective Java, Item 17 - Use Interfaces only to define types.
JavadocMethodCheck Checks the Javadoc of a method or constructor.
JavadocTypeCheck Checks the Javadoc of a type.
JavadocVariableCheck Checks that a variable has Javadoc comment.
LeftCurlyCheck Checks the placement of left curly braces on types, methods and other the other blocks: LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE.
LeftCurlyOption Represents the options for placing the left curly brace '{'.
LineLengthCheck Checks for long lines.
LineSeparatorOption Represents the options for line separator settings.
LocalFinalVariableNameCheck Checks that local final variable names conform to a format specified by the format property.
LocalVariableNameCheck Checks that local, non-final variable names conform to a format specified by the format property.
MagicNumberCheck Checks for magic numbers.
MemberNameCheck Checks that instance variable names conform to a format specified by the format property.
MethodLengthCheck Checks for long methods.
MethodNameCheck Checks that method names conform to a format specified by the format property.
MissingSwitchDefaultCheck Checks that switch statement has "default" clause.
ModifierOrderCheck Checks that the order of modifiers conforms to the suggestions in the Java Language specification, sections 8.1.1, 8.3.1 and 8.4.3.
NeedBracesCheck Checks for braces around code blocks.
NewlineAtEndOfFileCheck Checks that there is a newline at the end of each file.
NoWhitespaceAfterCheck Checks that there is no whitespace after a token.
NoWhitespaceBeforeCheck Checks that there is no whitespace before a token.
OperatorWrapCheck Checks line wrapping for operators.
OperatorWrapOption Represents the options for wrapping on an operator.
PackageHtmlCheck Checks that all packages have a package documentation.
PackageNameCheck Checks that package names conform to a format specified by the format property.
PadOption Represents the options for whitespace around parentheses.
ParameterNameCheck Checks that parameter names conform to a format specified by the format property.
ParameterNumberCheck Checks the number of parameters that a method or constructor has.
ParenPadCheck Checks the padding of parentheses; that is whether a space is required after a left parenthesis and before a right parenthesis, or such spaces are forbidden, with the exception that it does not check for padding of the right parenthesis at an empty for iterator.
RedundantImportCheck Checks for imports that are redundant.
RedundantModifierCheck Checks for redundant modifiers in interface definitions.
RedundantThrowsCheck Checks for redundant exceptions declared in throws clause such as duplicates, unchecked exceptions or subclasses of another declared exception.
RegexpHeaderCheck Checks the header of the source against a header file that contains a regular expression for each line of the source header.
RightCurlyCheck Checks the placement of right curly braces.
RightCurlyOption Represents the options for placing the right curly brace '}'.
SimplifyBooleanExpressionCheck Checks for overly complicated boolean expressions.
SimplifyBooleanReturnCheck Checks for overly complicated boolean return statements.
StaticVariableNameCheck Checks that static, non-final variable names conform to a format specified by the format property.
TabCharacterCheck Reports tab characters ('\t') in the source code.
TodoCommentCheck A check for TODO comments.
TranslationCheck The TranslationCheck class helps to ensure the correct translation of code by checking property files for consistency regarding their keys.
TypeNameCheck Checks that type names conform to a format specified by the format property.
UnusedImportsCheck Checks for unused import statements.
UpperEllCheck Checks that long constants are defined with an uppper ell.
VisibilityModifierCheck Checks visibility of class members.
WhitespaceAfterCheck Checks that a token is followed by whitespace, with the exception that it does not check for whitespace after the semicolon of an empty for iterator.
WhitespaceAroundCheck Checks that a token is surrounded by whitespace.
 

Package com.puppycrawl.tools.checkstyle.checks Description

Contains the checks that are bundled with the main distribution.


Back to the Checkstyle Home Page