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. |
BlockEndsWithBlankLineRule
|
Checks that code blocks such as method bodies, closures and control structure bodies do not end with an empty line. |
BlockStartsWithBlankLineRule
|
Checks that code blocks do not start with an empty line. |
BracesForClassRule
|
Checks the location of the opening brace ({) for classes. |
BracesForForLoopRule
|
Checks the location of the opening brace ({) for for loops. |
BracesForIfElseRule
|
Checks the location of the opening brace ({) for if statements and optionally closing and opening braces
for else statements. |
BracesForMethodRule
|
Checks the location of the opening brace ({) for constructors and methods. |
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. |
ClassEndsWithBlankLineRule
|
Check whether the class ends with a blank line. |
ClassStartsWithBlankLineRule
|
Check whether the class starts with a blank line. |
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. |
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. |
SpaceAfterCatchRule
|
Check that there is exactly one space (blank) after the catch keyword and before the opening parenthesis. |
SpaceAfterClosingBraceRule
|
Check that there is at least one space (blank) or whitespace after each closing brace ("}").
|
SpaceAfterCommaRule
|
Check that there is at least one space (blank) or whitespace following each comma. |
SpaceAfterForRule
|
Check that there is exactly one space (blank) after the for keyword and before the opening parenthesis. |
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 |
SpaceAfterMethodDeclarationNameRule
|
Check whether method declarations do not contain unnecessary whitespace between method name and the opening
parenthesis for parameter list. |
SpaceAfterNotOperatorRule
|
Check that there are no whitespace characters directly after the not (!) |
SpaceAfterOpeningBraceRule
|
Check that there is at least one space (blank) or whitespace after each opening brace ("{").
|
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++) |
SpaceAfterSwitchRule
|
Check that there is exactly one space (blank) after the switch keyword and before the opening parenthesis. |
SpaceAfterWhileRule
|
Check that there is exactly one space (blank) after the while keyword and before the opening parenthesis. |
SpaceAroundClosureArrowRule
|
Checks that there is whitespace around the closure arrow (->) symbol |
SpaceAroundMapEntryColonRule
|
Check for configured formatting of whitespace around colons for literal Map entries |
SpaceAroundOperatorRule
|
Check that there is at least one space (blank) or whitespace around each binary operator,
including: +, -, *, /, >>, <<, &&, ||, &, |, ? |
SpaceBeforeClosingBraceRule
|
Check that there is at least one space (blank) or whitespace before each closing brace ("}").
|
SpaceBeforeOpeningBraceRule
|
Check that there is at least one space (blank) or whitespace before each opening brace ("{").
|
SpaceInsideParenthesesRule
|
Check for whitespace after opening parentheses and before closing parentheses |
TrailingWhitespaceRule
|
Checks that no lines of source code end with whitespace characters. |