groovy.org.codenarc.rule.convention
[Groovy] Class NoDefRule
java.lang.Object
org.codenarc.rule.AbstractRule
groovy.org.codenarc.rule.convention.NoDefRule
class NoDefRule
extends AbstractRule
Def keyword is overused and should be replaced with specific type.
The excludeRegex property optionally specifies regex
to find text which could occur immediately after def.
- Authors:
- Dominik Przybysz
MESSAGE
protected static final String MESSAGE
-
excludeRegex
String excludeRegex
-
name
String name
-
priority
int priority
-
applyTo
@Override
void applyTo(SourceCode sourceCode, List violations)
-
Groovy Documentation