|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.internal.ConventionTask
org.gradle.api.tasks.SourceTask
org.gradle.api.plugins.quality.CodeNarc
class CodeNarc extends SourceTask
Runs CodeNarc against some source files.
Field Summary |
---|
Fields inherited from class SourceTask | |
---|---|
source |
Property Summary | |
---|---|
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 Summary | |
CodeNarc(Instantiator instantiator, IsolatedAntBuilder antBuilder)
|
Method Summary | |
---|---|
File
|
getReportFile()
The file to write the report to. |
String
|
getReportFormat()
The format type of the CodeNarc report. |
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()
|
void
|
setReportFile(File reportFile)
@deprecated Use {@code reports. |
void
|
setReportFormat(String reportFormat)
@deprecated Use {@code reports. |
Methods inherited from class SourceTask | |
---|---|
exclude, exclude, exclude, exclude, getDefaultSource, getExcludes, getIncludes, getSource, include, include, include, include, setExcludes, setIncludes, setSource, source |
Property Detail |
---|
@InputFiles FileCollection codenarcClasspath
@InputFile File configFile
boolean ignoreFailures
@Input int maxPriority1Violations
@Input int maxPriority2Violations
@Input int maxPriority3Violations
Constructor Detail |
---|
@Inject CodeNarc(Instantiator instantiator, IsolatedAntBuilder antBuilder)
Method Detail |
---|
@Deprecated File getReportFile()
@Deprecated String getReportFormat()
CodeNarcReports getReports()
CodeNarcReports reports(Closure closure)
@TaskAction void run()
@Deprecated void setReportFile(File reportFile)
@Deprecated void setReportFormat(String reportFormat)
Gradle API 1.12