Package com.puppycrawl.tools.checkstyle.checks.whitespace
Contains the Whitespace checks that
are bundled with the main distribution.
-
Class Summary Class Description AbstractParenPadCheck Abstract class for checking the padding of parentheses.EmptyForInitializerPadCheck Checks the padding of an empty for initializer; that is whether a space is required at an empty for initializer, or such spaces are forbidden.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.EmptyLineSeparatorCheck Checks for empty line separators after header, package, all import declarations, fields, constructors, methods, nested classes, static initializers and instance initializers.FileTabCharacterCheck Checks to see if a file contains a tab character.GenericWhitespaceCheck Checks that the whitespace around the Generic tokens (angle brackets) "<" and ">" are correct to the typical convention.MethodParamPadCheck Checks the padding between the identifier of a method definition, constructor definition, method call, or constructor invocation; and the left parenthesis of the parameter list.NoLineWrapCheck Checks that chosen statements are not line-wrapped.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.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 and empty for initializer.SeparatorWrapCheck Checks line wrapping with separators.SingleSpaceSeparatorCheck Checks that non-whitespace characters are separated by no more than one whitespace.TypecastParenPadCheck Checks the padding of parentheses for typecasts.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. -
Enum Summary Enum Description PadOption Represents the options for whitespace around parentheses.WrapOption Represents the options for wrapping on an operator.