class NoDefRule extends AbstractAstVisitorRule
Def keyword is overused and should be replaced with specific type.
TheexcludeRegex property optionally specifies regex
to find text which could occur immediately after def. | Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
MESSAGE |
|
static java.lang.String |
MESSAGE_DEF_FIELD |
|
static java.lang.String |
MESSAGE_DEF_PARAMETER |
|
static java.lang.String |
MESSAGE_DEF_RETURN |
|
protected java.util.regex.Pattern |
excludePattern |
| 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 |
java.lang.String |
name |
int |
priority |
| Constructor and description |
|---|
NoDefRule
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
setExcludeRegex(java.lang.String excludeRegex) |
Groovy Documentation