Package org.gradle.api.plugins.quality
Class CodeQualityExtension
java.lang.Object
org.gradle.api.plugins.quality.CodeQualityExtension
- Direct Known Subclasses:
CheckstyleExtension,CodeNarcExtension,PmdExtension
Base Code Quality Extension.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhether to allow the build to continue if there are warnings.The directory where reports will be generated.abstract DirectoryPropertyThe directory where reports will be generated.abstract ListProperty<SourceSet> The source sets to be analyzed as part of thecheckandbuildtasks.The version of the code quality tool to be used.voidsetIgnoreFailures(boolean ignoreFailures) Whether to allow the build to continue if there are warnings.voidsetReportsDir(File reportsDir) Sets the directory where reports will be generated.voidsetSourceSets(Collection<SourceSet> sourceSets) The source sets to be analyzed as part of thecheckandbuildtasks.voidsetToolVersion(String toolVersion) The version of the code quality tool to be used.
-
Constructor Details
-
CodeQualityExtension
public CodeQualityExtension()
-
-
Method Details
-
getToolVersion
The version of the code quality tool to be used. -
setToolVersion
The version of the code quality tool to be used. -
getSourceSets
The source sets to be analyzed as part of thecheckandbuildtasks. -
setSourceSets
The source sets to be analyzed as part of thecheckandbuildtasks. -
getIgnoreFailures
Whether to allow the build to continue if there are warnings. Example: ignoreFailures = true -
setIgnoreFailures
public void setIgnoreFailures(boolean ignoreFailures) Whether to allow the build to continue if there are warnings. Example: ignoreFailures = true -
getIsIgnoreFailures
-
getReportsDirectory
The directory where reports will be generated.- Since:
- 9.7.0
-
getReportsDir
The directory where reports will be generated. -
setReportsDir
Sets the directory where reports will be generated.
-