Class CodeNarcTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.codenarc.ant.CodeNarcTask
- All Implemented Interfaces:
groovy.lang.GroovyObject, Cloneable
public class CodeNarcTask
extends org.apache.tools.ant.Task
implements groovy.lang.GroovyObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected groovy.lang.Closureprotected Listprotected Listprotected RuleSetFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguredReport(Report report) voidaddFileset(org.apache.tools.ant.types.FileSet fileSet) org.apache.tools.ant.types.Pathprotected SourceAnalyzervoidexecute()org.apache.tools.ant.types.Pathintintintgroovy.lang.MetaClassgetProperty(String property) invokeMethod(String method, Object arguments) voidsetClasspath(org.apache.tools.ant.types.Path value) voidsetClasspathRef(org.apache.tools.ant.types.Reference reference) voidsetExcludeBaseline(String value) voidsetMaxPriority1Violations(int value) voidsetMaxPriority2Violations(int value) voidsetMaxPriority3Violations(int value) voidsetMetaClass(groovy.lang.MetaClass mc) voidsetProperty(String property, Object value) voidsetRuleSetFiles(String value) Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
reportWriters
-
fileSets
-
ruleSet
-
createCodeNarcRunner
protected groovy.lang.Closure createCodeNarcRunner
-
-
Constructor Details
-
CodeNarcTask
public CodeNarcTask()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject
-
invokeMethod
-
getProperty
-
setProperty
-
getRuleSetFiles
-
setRuleSetFiles
-
getExcludeBaseline
-
setExcludeBaseline
-
getMaxPriority1Violations
public int getMaxPriority1Violations() -
setMaxPriority1Violations
public void setMaxPriority1Violations(int value) -
getMaxPriority2Violations
public int getMaxPriority2Violations() -
setMaxPriority2Violations
public void setMaxPriority2Violations(int value) -
getMaxPriority3Violations
public int getMaxPriority3Violations() -
setMaxPriority3Violations
public void setMaxPriority3Violations(int value) -
getClasspath
public org.apache.tools.ant.types.Path getClasspath() -
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path value) -
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
addFileset
public void addFileset(org.apache.tools.ant.types.FileSet fileSet) -
addConfiguredReport
-
createClasspath
public org.apache.tools.ant.types.Path createClasspath() -
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference reference) -
createSourceAnalyzer
-