| Type | Name and description |
|---|---|
TextResource |
configThe CodeNarc configuration to use. |
int |
maxPriority1ViolationsThe maximum number of priority 1 violations allowed before failing the build. |
int |
maxPriority2ViolationsThe maximum number of priority 2 violations allowed before failing the build. |
int |
maxPriority3ViolationsThe maximum number of priority 3 violations allowed before failing the build. |
String |
reportFormatThe format type of the CodeNarc report. |
| Constructor and description |
|---|
CodeNarcExtension
(Project project) |
| Type | Name and description |
|---|---|
File |
getConfigFile()The CodeNarc configuration file to use. |
void |
setConfigFile(File file)The CodeNarc configuration file to use. |
void |
setReportFormat(String reportFormat) |
The CodeNarc configuration to use. Replaces the configFile property.
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.
Gradle API 2.10