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 Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, 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.
Gradle API 3.0-milestone-1