class MethodReturnTypeRequiredRule extends AbstractAstVisitorRule
Checks that method return types are not dynamic, that they are explicitly stated and different than def.
The ignoreMethods property optionally specifices which methode names to ignore. Format is a comma separated list.
| 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 |
ignoreMethodNames |
java.lang.String |
name |
int |
priority |
| Constructor and description |
|---|
MethodReturnTypeRequiredRule
() |
Groovy Documentation