org.codenarc.rule.unnecessary
[Groovy] Class UnnecessaryReturnKeywordRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
org.codenarc.rule.unnecessary.UnnecessaryReturnKeywordRule
class UnnecessaryReturnKeywordRule
extends AbstractAstVisitorRule
In Groovy, the return keyword is often optional. If a statement is the last line in a method or closure then you do not need to have the return keyword.
- Authors:
- Hamlet D'Arcy
- Version:
- \$Revision: 563 \$ - \$Date: 2011-01-23 09:21:47 -0500 (Sun, 23 Jan 2011) \$
Methods inherited from class AbstractRule
|
applyTo, applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, isReady, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport, toString, validate |
astVisitorClass
Class astVisitorClass
-
name
String name
-
priority
int priority
-
Groovy Documentation