public class CodeNarcTask
extends org.apache.tools.ant.Task
implements groovy.lang.GroovyObject
Modifier and Type | Field and Description |
---|---|
protected Object |
createCodeNarcRunner |
protected List |
fileSets |
protected List |
reportWriters |
protected Object |
ruleSet |
Constructor and Description |
---|
CodeNarcTask() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredReport(Report report) |
void |
addFileset(org.apache.tools.ant.types.FileSet fileSet) |
protected SourceAnalyzer |
createSourceAnalyzer() |
void |
execute() |
String |
getExcludeBaseline() |
int |
getMaxPriority1Violations() |
int |
getMaxPriority2Violations() |
int |
getMaxPriority3Violations() |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
String |
getRuleSetFiles() |
Object |
invokeMethod(String method,
Object arguments) |
void |
setExcludeBaseline(String value) |
void |
setMaxPriority1Violations(int value) |
void |
setMaxPriority2Violations(int value) |
void |
setMaxPriority3Violations(int value) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
void |
setRuleSetFiles(String value) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
protected List reportWriters
protected List fileSets
protected Object ruleSet
protected Object createCodeNarcRunner
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
public String getRuleSetFiles()
public void setRuleSetFiles(String value)
public String getExcludeBaseline()
public void setExcludeBaseline(String value)
public int getMaxPriority1Violations()
public void setMaxPriority1Violations(int value)
public int getMaxPriority2Violations()
public void setMaxPriority2Violations(int value)
public int getMaxPriority3Violations()
public void setMaxPriority3Violations(int value)
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void addFileset(org.apache.tools.ant.types.FileSet fileSet)
public void addConfiguredReport(Report report)
protected SourceAnalyzer createSourceAnalyzer()
Copyright © 2022. All rights reserved.