open class CheckstyleExtension : CodeQualityExtension
Configuration options for the Checkstyle plugin.
See Also
CheckstylePlugin
CheckstyleExtension(project: Project) |
open fun getConfig(): TextResource
The Checkstyle configuration to use. Replaces the |
|
open fun getConfigDir(): File
Path to other Checkstyle configuration files. By default, this path is This path will be exposed as the variable |
|
open fun getConfigDirectory(): DirectoryProperty
Gets the configuration directory. |
|
open fun getConfigFile(): File
The Checkstyle configuration file to use. |
|
open fun getConfigProperties(): MutableMap<String, Any>
The properties available for use in the configuration file. These are substituted into the configuration file. |
|
open fun getMaxErrors(): Int
The maximum number of errors that are tolerated before breaking the build or setting the failure property. Defaults to 0. Example: maxErrors = 42 |
|
open fun getMaxWarnings(): Int
The maximum number of warnings that are tolerated before breaking the build or setting the failure property. Defaults to Integer.MAX_VALUE. Example: maxWarnings = 1000 |
|
open fun isShowViolations(): Boolean
Whether rule violations are to be displayed on the console. Defaults to true. Example: showViolations = false |
|
open fun setConfig(config: TextResource): Unit
The Checkstyle configuration to use. Replaces the |
|
open fun setConfigDir(configDir: File): Unit
Path to other Checkstyle configuration files. By default, this path is This path will be exposed as the variable |
|
open fun setConfigFile(configFile: File): Unit
The Checkstyle configuration file to use. |
|
open fun setConfigProperties(configProperties: MutableMap<String, Any>): Unit
The properties available for use in the configuration file. These are substituted into the configuration file. |
|
open fun setMaxErrors(maxErrors: Int): Unit
Set the maximum number of errors that are tolerated before breaking the build. |
|
open fun setMaxWarnings(maxWarnings: Int): Unit
Set the maximum number of warnings that are tolerated before breaking the build. |
|
open fun setShowViolations(showViolations: Boolean): Unit
Whether rule violations are to be displayed on the console. Defaults to true. Example: showViolations = false |
open fun getReportsDir(): File
The directory where reports will be generated. |
|
open fun getSourceSets(): MutableCollection<SourceSet>
The source sets to be analyzed as part of the check and build tasks. |
|
open fun getToolVersion(): String
The version of the code quality tool to be used. |
|
open fun isIgnoreFailures(): Boolean
Whether to allow the build to continue if there are warnings. Example: ignoreFailures = true |
|
open fun setIgnoreFailures(ignoreFailures: Boolean): Unit
Whether to allow the build to continue if there are warnings. Example: ignoreFailures = true |
|
open fun setReportsDir(reportsDir: File): Unit
The directory where reports will be generated. |
|
open fun setSourceSets(sourceSets: MutableCollection<SourceSet>): Unit
The source sets to be analyzed as part of the check and build tasks. |
|
open fun setToolVersion(toolVersion: String): Unit
The version of the code quality tool to be used. |
val CheckstyleExtension.ext: ExtraPropertiesExtension
Retrieves the ext extension. |
fun CheckstyleExtension.ext(configure: ExtraPropertiesExtension.() -> Unit): Unit
Configures the ext extension. |