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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThe directory where reports will be generated.The source sets to be analyzed as part of thecheckandbuildtasks.The version of the code quality tool to be used.booleanWhether to allow the build to continue if there are warnings.voidsetIgnoreFailures(boolean ignoreFailures) Whether to allow the build to continue if there are warnings.voidsetReportsDir(File reportsDir) 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- 
CodeQualityExtensionpublic CodeQualityExtension()
 
- 
- 
Method Details- 
getToolVersionThe version of the code quality tool to be used.
- 
setToolVersionThe version of the code quality tool to be used.
- 
getSourceSetsThe source sets to be analyzed as part of thecheckandbuildtasks.
- 
setSourceSetsThe source sets to be analyzed as part of thecheckandbuildtasks.
- 
isIgnoreFailurespublic boolean isIgnoreFailures()Whether to allow the build to continue if there are warnings. Example: ignoreFailures = true
- 
setIgnoreFailurespublic void setIgnoreFailures(boolean ignoreFailures) Whether to allow the build to continue if there are warnings. Example: ignoreFailures = true
- 
getReportsDirThe directory where reports will be generated.
- 
setReportsDirThe directory where reports will be generated.
 
-