class ClassStartsWithBlankLineRule extends AbstractAstVisitorRule
Check whether the class starts with a blank line. By default, it enforces that there must be a blank line after the opening class brace, except:
A blank line is defined as any line that does not contain any visible characters.
This rule can be configured with the following properties:
Fields inherited from class | Fields |
---|---|
class AbstractAstVisitorRule |
CLOSURE_TEXT, DEFAULT_CONST_NAME, DEFAULT_FIELD_NAME, DEFAULT_TEST_CLASS_NAMES, DEFAULT_TEST_FILES, DEFAULT_VAR_NAME |
Type | Name and description |
---|---|
java.lang.Class |
astVisitorClass |
boolean |
blankLineRequired |
boolean |
ignoreInnerClasses |
boolean |
ignoreSingleLineClasses |
java.lang.String |
name |
int |
priority |
Constructor and description |
---|
ClassStartsWithBlankLineRule
() |
Groovy Documentation