|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
org.codenarc.rule.size.MethodSizeRule
class MethodSizeRule extends AbstractAstVisitorRule
Rule that checks the size of a method.
ThemaxLines
property holds the threshold value for the maximum number of lines. A
method length (number of lines) greater than that value is considered a violation. The
maxLines
property defaults to 100.
The ignoreMethodNames
property optionally specifies one or more
(comma-separated) method names that should be ignored (i.e., that should not cause a
rule violation). The name(s) may optionally include wildcard characters ('*' or '?').
Property Summary | |
---|---|
Class |
astVisitorClass
|
String |
ignoreMethodNames
|
int |
maxLines
|
String |
name
|
int |
priority
|
Constructor Summary | |
MethodSizeRule()
|
Method Summary |
---|
Methods inherited from class AbstractAstVisitorRule | |
---|---|
shouldApplyThisRuleTo |
Property Detail |
---|
Class astVisitorClass
String ignoreMethodNames
int maxLines
String name
int priority
Constructor Detail |
---|
MethodSizeRule()
Groovy Documentation