|
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.Checkstyle
class Checkstyle extends SourceTask
Runs Checkstyle against some source files.
Field Summary |
---|
Fields inherited from class SourceTask | |
---|---|
source |
Property Summary | |
---|---|
FileCollection |
checkstyleClasspath
The class path containing the Checkstyle library to be used. |
FileCollection |
classpath
The class path containing the compiled classes for the source files to be analyzed. |
File |
configFile
The Checkstyle configuration file to use. |
Map |
configProperties
The properties available for use in the configuration file. |
boolean |
ignoreFailures
Whether or not this task will ignore failures and continue running the build. |
boolean |
showViolations
Whether or not rule violations are to be displayed on the console. |
Constructor Summary | |
Checkstyle(Instantiator instantiator, IsolatedAntBuilder antBuilder)
|
Method Summary | |
---|---|
Map
|
getProperties()
The properties available for use in the configuration file. |
CheckstyleReports
|
getReports()
The reports to be generated by this task. |
File
|
getResultFile()
Returns the destination file for the XML report. |
CheckstyleReports
|
reports(Closure closure)
Configures the reports to be generated by this task. |
void
|
run()
|
void
|
setProperties(Map properties)
The properties available for use in the configuration file. |
void
|
setResultFile(File file)
@deprecated Use reports.xml.destination instead. |
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 checkstyleClasspath
@InputFiles FileCollection classpath
@InputFile File configFile
@Input @Optional Map configProperties
boolean ignoreFailures
boolean showViolations
Constructor Detail |
---|
@Inject Checkstyle(Instantiator instantiator, IsolatedAntBuilder antBuilder)
Method Detail |
---|
@Deprecated Map getProperties()
CheckstyleReports getReports()
@Deprecated File getResultFile()
CheckstyleReports reports(Closure closure)
checkstyleTask { reports { xml { destination "build/codenarc.xml" } } }
closure
- The configuration
@TaskAction void run()
@Deprecated void setProperties(Map properties)
@Deprecated void setResultFile(File file)
Gradle API 1.12