class CodeNarc extends SourceTask
Runs CodeNarc against some source files.
Type | Name and description |
---|---|
FileCollection |
codenarcClasspath The class path containing the CodeNarc library to be used. |
File |
configFile The CodeNarc configuration file to use. |
boolean |
ignoreFailures Whether or not the build should break when the verifications performed by this task fail. |
int |
maxPriority1Violations The maximum number of priority 1 violations allowed before failing the build. |
int |
maxPriority2Violations The maximum number of priority 2 violations allowed before failing the build. |
int |
maxPriority3Violations The 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