| Class | Description |
|---|---|
| AbstractSingleSpaceAfterKeywordAstVisitor | Abstract superclass for AstVisitor classes that checks that there is exactly one space (blank) after a keyword and before the opening parenthesis. |
| AbstractSpaceAroundBraceAstVisitor | Abstract superclass for AstVisitor classes dealing with space around braces |
| BlankLineBeforePackageRule | Makes sure there are no blank lines before the package declaration of a source code file. |
| BlockEndsWithBlankLineAstVisitor | |
| BlockEndsWithBlankLineRule | Checks that code blocks such as method bodies, closures and control structure bodies do not end with an empty line. |
| BlockStartsWithBlankLineAstVisitor | |
| BlockStartsWithBlankLineRule | Checks that code blocks do not start with an empty line. |
| BracesForClassRule | Checks the location of the opening brace ({) for classes. |
| BracesForForLoopAstVisitor | |
| BracesForForLoopRule | Checks the location of the opening brace ({) for for loops. |
| BracesForIfElseAstVisitor | |
| BracesForIfElseRule | Checks the location of the opening brace ({) for if statements and optionally closing and opening braces for else statements. |
| BracesForMethodAstVisitor | |
| BracesForMethodRule | Checks the location of the opening brace ({) for constructors and methods. |
| BracesForTryCatchFinallyAstVisitor | |
| BracesForTryCatchFinallyRule | Checks the location of the opening brace ({) for try statements, the location of the 'catch' keyword and corresponding opening braces, and the location of the 'finally' keyword and the corresponding opening braces. |
| ClassEndsWithBlankLineAstVisitor | |
| ClassEndsWithBlankLineRule | Check whether the class ends with a blank line. |
| ClassStartsWithBlankLineAstVisitor | |
| ClassStartsWithBlankLineRule | Check whether the class starts with a blank line. |
| ClosureStatementOnOpeningLineOfMultipleLineClosureAstVisitor | |
| ClosureStatementOnOpeningLineOfMultipleLineClosureRule | Checks for closure logic on first line (after ->) for a multi-line closure |
| ConsecutiveBlankLinesRule | Makes sure there are no consecutive lines that are either blank or whitespace only. |
| FileEndsWithoutNewlineRule | Makes sure the source code file ends with a newline character. |
| IndentationAstVisitor | |
| IndentationRule | Check indentation for class and method declarations |
| LineLengthRule | Checks the maximum length for each line of source code. |
| MissingBlankLineAfterImportsRule | Makes sure there is a blank line after the imports of a source code file. |
| MissingBlankLineAfterPackageRule | Makes sure there is a blank line after the package statement of a source code file. |
| MissingBlankLineBeforeAnnotatedFieldRule | Checks that there is a blank line before a field declaration that uses annotations. |
| MissingBlankLineBeforeAnnotatedFieldRuleAstVisitor | |
| SpaceAfterCatchRule | Check that there is exactly one space (blank) after the catch keyword and before the opening parenthesis. |
| SpaceAfterClosingBraceAstVisitor | |
| SpaceAfterClosingBraceRule | Check that there is at least one space (blank) or whitespace after each closing brace ("}"). |
| SpaceAfterCommaAstVisitor | |
| SpaceAfterCommaRule | Check that there is at least one space (blank) or whitespace following each comma. |
| SpaceAfterElseAstVisitor | |
| SpaceAfterForAstVisitor | |
| SpaceAfterForRule | Check that there is exactly one space (blank) after the for keyword and before the opening parenthesis. |
| SpaceAfterIfAstVisitor | |
| SpaceAfterIfRule | Check that there is exactly one space (blank) after the if keyword and before the opening parenthesis. |
| SpaceAfterMethodCallNameRule | Checks that there is no whitespace at the end of the method name when a method call contains parenthesis or that there is at most one space after the method name if the call does not contain parenthesis |
| SpaceAfterMethodCallNameRuleAstVisitor | |
| SpaceAfterMethodDeclarationNameRule | Check whether method declarations do not contain unnecessary whitespace between method name and the opening parenthesis for parameter list. |
| SpaceAfterMethodDeclarationNameRuleAstVisitor | |
| SpaceAfterNotOperatorRule | Check that there are no whitespace characters directly after the not (!) |
| SpaceAfterNotOperatorRuleAstVisitor | |
| SpaceAfterOpeningBraceAstVisitor | |
| SpaceAfterOpeningBraceRule | Check that there is at least one space (blank) or whitespace after each opening brace ("{"). |
| SpaceAfterSemicolonAstVisitor | |
| SpaceAfterSemicolonRule | Check that there is at least one space (blank) or whitespace following a semicolon that separates: - multiple statements on a single line - the clauses within a classic for loop, e.g. for (i=0;i<10;i++) |
| SpaceAfterSwitchAstVisitor | |
| SpaceAfterSwitchRule | Check that there is exactly one space (blank) after the switch keyword and before the opening parenthesis. |
| SpaceAfterWhileAstVisitor | |
| SpaceAfterWhileRule | Check that there is exactly one space (blank) after the while keyword and before the opening parenthesis. |
| SpaceAroundClosureArrowAstVisitor | |
| SpaceAroundClosureArrowRule | Checks that there is whitespace around the closure arrow (->) symbol |
| SpaceAroundMapEntryColonAstVisitor | |
| SpaceAroundMapEntryColonRule | Check for configured formatting of whitespace around colons for literal Map entries |
| SpaceAroundOperatorAstVisitor | |
| SpaceAroundOperatorRule | Check that there is at least one space (blank) or whitespace around each binary operator, including: +, -, *, /, >>, <<, &&, ||, &, |, ? |
| SpaceBeforeClosingBraceAstVisitor | |
| SpaceBeforeClosingBraceRule | Check that there is at least one space (blank) or whitespace before each closing brace ("}"). |
| SpaceBeforeOpeningBraceAstVisitor | |
| SpaceBeforeOpeningBraceRule | Check that there is at least one space (blank) or whitespace before each opening brace ("{"). |
| SpaceInsideParenthesesAstVisitor | |
| SpaceInsideParenthesesRule | Check for whitespace after opening parentheses and before closing parentheses |
| TrailingWhitespaceRule | Checks that no lines of source code end with whitespace characters. |