Package com.puppycrawl.tools.checkstyle.checks.whitespace


package com.puppycrawl.tools.checkstyle.checks.whitespace
Contains the Whitespace checks that are bundled with the main distribution.
  • Class
    Description
    Abstract class for checking the padding of parentheses.
    Checks 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.
    Checks 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.
    Checks for empty line separators before package, all import declarations, fields, constructors, methods, nested classes, static initializers and instance initializers.
    Checks that there are no tab characters ('\t') in the source code.
    Checks that the whitespace around the Generic tokens (angle brackets) "<" and ">" are correct to the typical convention.
    Checks the padding between the identifier of a method definition, constructor definition, method call, constructor invocation, record, or record pattern; and the left parenthesis of the parameter list.
    Checks that chosen statements are not line-wrapped.
    Checks that there is no whitespace after a token.
    Checks that there is no whitespace before the colon in a switch block.
    Checks that there is no whitespace before a token.
    Checks the policy on how to wrap lines on operators.
    Represents the options for whitespace around parentheses.
    Checks 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.
    Checks line wrapping with separators.
    Checks that non-whitespace characters are separated by no more than one whitespace.
    Checks the policy on the padding of parentheses for typecasts.
    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.
    Checks that a token is surrounded by whitespace.
    Represents the options for wrapping on an operator.