public class CrapMetricRule extends AbstractAstVisitorRule implements groovy.lang.GroovyObject
| Modifier and Type | Field and Description |
|---|---|
protected String |
crapMetricClassName |
CLOSURE_TEXT, DEFAULT_CONST_NAME, DEFAULT_FIELD_NAME, DEFAULT_TEST_CLASS_NAMES, DEFAULT_TEST_FILES, DEFAULT_VAR_NAME| Constructor and Description |
|---|
CrapMetricRule() |
| Modifier and Type | Method and Description |
|---|---|
AstVisitor |
getAstVisitor() |
String |
getCoberturaXmlFile() |
String |
getIgnoreMethodNames() |
BigDecimal |
getMaxClassAverageMethodCrapScore() |
BigDecimal |
getMaxClassCrapScore() |
BigDecimal |
getMaxMethodCrapScore() |
groovy.lang.MetaClass |
getMetaClass() |
String |
getName() |
int |
getPriority() |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
boolean |
isReady()
Allows rules to check whether preconditions are satisfied and short-circuit execution
(i.e., do nothing) if those preconditions are not satisfied.
|
void |
setCoberturaXmlFile(String value) |
void |
setIgnoreMethodNames(String value) |
void |
setMaxClassAverageMethodCrapScore(BigDecimal value) |
void |
setMaxClassCrapScore(BigDecimal value) |
void |
setMaxMethodCrapScore(BigDecimal value) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setName(String value)
Set the unique name for this rule
|
void |
setPriority(int value)
Set the priority for this rule
|
void |
setProperty(String property,
Object value) |
applyTo, getApplyToClassNames, getAstVisitorClass, getDoNotApplyToClassNames, setApplyToClassNames, setDoNotApplyToClassNames, shouldApplyThisRuleToapplyTo, createViolation, createViolation, createViolation, createViolation, createViolation, createViolationForImport, createViolationForImport, createViolationForImport, getApplyToFileNames, getApplyToFilesMatching, getCompilerPhase, getDescription, getDoNotApplyToFileNames, getDoNotApplyToFilesMatching, getViolationMessage, isEnabled, setApplyToFileNames, setApplyToFilesMatching, setDescription, setDoNotApplyToFileNames, setDoNotApplyToFilesMatching, setEnabled, setViolationMessage, toString, validateprotected String crapMetricClassName
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic String getName()
getName in interface RulegetName in class AbstractRulepublic void setName(String value)
AbstractRulesetName in class AbstractRulevalue - - the name for this rule; this should be uniquepublic int getPriority()
getPriority in interface RulegetPriority in class AbstractRulepublic void setPriority(int value)
AbstractRulesetPriority in class AbstractRulevalue - - the priority of this rule, between 1 (highest priority) and 3 (lowest priority), inclusive.public BigDecimal getMaxMethodCrapScore()
public void setMaxMethodCrapScore(BigDecimal value)
public BigDecimal getMaxClassAverageMethodCrapScore()
public void setMaxClassAverageMethodCrapScore(BigDecimal value)
public BigDecimal getMaxClassCrapScore()
public void setMaxClassCrapScore(BigDecimal value)
public String getCoberturaXmlFile()
public void setCoberturaXmlFile(String value)
public String getIgnoreMethodNames()
public void setIgnoreMethodNames(String value)
public AstVisitor getAstVisitor()
getAstVisitor in class AbstractAstVisitorRulepublic boolean isReady()
AbstractRuleisReady in class AbstractRuleCopyright © 2021. All rights reserved.