Configuration options for the CodeNarc plugin.
Constructor and description |
---|
CodeNarcExtension
(Project project) |
Type | Name and description |
---|---|
TextResource |
getConfig() The CodeNarc configuration to use. |
File |
getConfigFile() The CodeNarc configuration file to use. |
int |
getMaxPriority1Violations() The maximum number of priority 1 violations allowed before failing the build. |
int |
getMaxPriority2Violations() The maximum number of priority 2 violations allowed before failing the build. |
int |
getMaxPriority3Violations() The maximum number of priority 3 violations allowed before failing the build. |
String |
getReportFormat() The format type of the CodeNarc report. |
void |
setConfig(TextResource config) |
void |
setConfigFile(File file) The CodeNarc configuration file to use. |
void |
setMaxPriority1Violations(int maxPriority1Violations) |
void |
setMaxPriority2Violations(int maxPriority2Violations) |
void |
setMaxPriority3Violations(int maxPriority3Violations) |
void |
setReportFormat(String reportFormat) |
Methods inherited from class | Name |
---|---|
class CodeQualityExtension |
getIgnoreFailures, getReportsDir, getSourceSets, getToolVersion, isIgnoreFailures, setIgnoreFailures, setReportsDir, setSourceSets, setToolVersion |
class groovy.lang.GroovyObjectSupport |
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll() |
The CodeNarc configuration to use. Replaces the configFile
property.
The CodeNarc configuration file to use.
The maximum number of priority 1 violations allowed before failing the build.
The maximum number of priority 2 violations allowed before failing the build.
The maximum number of priority 3 violations allowed before failing the build.
The format type of the CodeNarc report. One of html, xml, text, console.
The CodeNarc configuration file to use.