class CodeNarc extends SourceTask
Runs CodeNarc against some source files.
| Type | Name and description |
|---|---|
FileCollection |
codenarcClasspathThe class path containing the CodeNarc library to be used. |
File |
configFileThe CodeNarc configuration file to use. |
boolean |
ignoreFailuresWhether or not the build should break when the verifications performed by this task fail. |
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. |
| Constructor and description |
|---|
CodeNarc
() |
| Type | Name and description |
|---|---|
IsolatedAntBuilder |
getAntBuilder() |
Instantiator |
getInstantiator() |
CodeNarcReports |
getReports()Returns the reports to be generated by this task. |
CodeNarcReports |
reports(Closure closure)Configures the reports to be generated by this task. |
void |
run() |
The class path containing the CodeNarc library to be used.
The CodeNarc configuration file to use.
Whether or not the build should break when the verifications performed by this task fail.
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.
Returns the reports to be generated by this task.
Configures the reports to be generated by this task.
Gradle API 2.2-20140924021627+0000