CheckstyleExtension

API Documentation:CheckstyleExtension

Properties

PropertyDescription
configFile

The Checkstyle configuration file to use.

configProperties

The properties available for use in the configuration file. These are substituted into the configuration file.

ignoreFailures

Whether or not to allow the build to continue if there are warnings. Example: ignoreFailures = true

reportsDir

The directory where reports will be generated.

sourceSets

The source sets to be analyzed as part of the check and build tasks.

toolVersion

The version of the code quality tool to be used.

Property details

File configFile

The Checkstyle configuration file to use.

Default with checkstyle plugin:
${project.projectDir}/config/checkstyle/checkstyle.xml
Default with code-quality plugin:
project.checkstyleConfigFile

Map<String, Object> configProperties

The properties available for use in the configuration file. These are substituted into the configuration file.

Default with checkstyle plugin:
[:]
Default with code-quality plugin:
project.checkstyleProperties

boolean ignoreFailures

Whether or not to allow the build to continue if there are warnings. Example: ignoreFailures = true

Default:
false

File reportsDir

The directory where reports will be generated.

Default with checkstyle plugin:
${project.reporting.baseDir}/checkstyle
Default with code-quality plugin:
project.checkstyleResultsDir

Collection<SourceSet> sourceSets

The source sets to be analyzed as part of the check and build tasks.

Default:
project.sourceSets

String toolVersion

The version of the code quality tool to be used.

Default with checkstyle plugin:
5.5
Default with code-quality plugin:
5.5

Script blocks

No script blocks

Methods

No methods