Contains the Whitespace checks that are bundled with the main distribution.
Class Summary Class Description AbstractParenPadCheckAbstract class for checking the padding of parentheses. EmptyForInitializerPadCheckChecks the padding of an empty for initializer; that is whether a white space is required at an empty for initializer, or such white space is forbidden. EmptyForIteratorPadCheckChecks the padding of an empty for iterator; that is whether a white space is required at an empty for iterator, or such white space is forbidden. EmptyLineSeparatorCheckChecks for empty line separators before package, all import declarations, fields, constructors, methods, nested classes, static initializers and instance initializers. FileTabCharacterCheckChecks that there are no tab characters (
'\t') in the source code.
GenericWhitespaceCheckChecks that the whitespace around the Generic tokens (angle brackets) "<" and ">" are correct to the typical convention. MethodParamPadCheckChecks the padding between the identifier of a method definition, constructor definition, method call, or constructor invocation; and the left parenthesis of the parameter list. NoLineWrapCheckChecks that chosen statements are not line-wrapped. NoWhitespaceAfterCheckChecks that there is no whitespace after a token. NoWhitespaceBeforeCaseDefaultColonCheckChecks that there is no whitespace before the colon in a switch block. NoWhitespaceBeforeCheckChecks that there is no whitespace before a token. OperatorWrapCheckChecks the policy on how to wrap lines on operators. ParenPadCheckChecks the policy on 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. SeparatorWrapCheckChecks line wrapping with separators. SingleSpaceSeparatorCheckChecks that non-whitespace characters are separated by no more than one whitespace. TypecastParenPadCheckChecks the policy on the padding of parentheses for typecasts. WhitespaceAfterCheckChecks 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. WhitespaceAroundCheckChecks that a token is surrounded by whitespace.
Enum Summary Enum Description PadOptionRepresents the options for whitespace around parentheses. WrapOptionRepresents the options for wrapping on an operator.