class Checkstyle extends SourceTask
Runs Checkstyle against some source files.
Type | Name and description |
---|---|
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<String, Object> |
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 and description |
---|
Checkstyle
() |
Type | Name and description |
---|---|
IsolatedAntBuilder |
getAntBuilder() |
Instantiator |
getInstantiator() |
CheckstyleReports |
getReports() The reports to be generated by this task. |
CheckstyleReports |
reports(Closure closure) Configures the reports to be generated by this task. |
void |
run() |
The class path containing the Checkstyle library to be used.
The class path containing the compiled classes for the source files to be analyzed.
The Checkstyle configuration file to use.
The properties available for use in the configuration file. These are substituted into the configuration file.
Whether or not this task will ignore failures and continue running the build.
Whether or not rule violations are to be displayed on the console.
The reports to be generated by this task.
Configures the reports to be generated by this task. The contained reports can be configured by name and closures. Example:
checkstyleTask { reports { xml { destination "build/codenarc.xml" } } }
closure
- The configurationGradle API 2.2-20140924021627+0000