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
-
Method Summary
Modifier and TypeMethodDescriptionThe directory where reports will be generated.The source sets to be analyzed as part of thecheck
andbuild
tasks.The version of the code quality tool to be used.boolean
Whether to allow the build to continue if there are warnings.void
setIgnoreFailures
(boolean ignoreFailures) Whether to allow the build to continue if there are warnings.void
setReportsDir
(File reportsDir) The directory where reports will be generated.void
setSourceSets
(Collection<SourceSet> sourceSets) The source sets to be analyzed as part of thecheck
andbuild
tasks.void
setToolVersion
(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 thecheck
andbuild
tasks. -
setSourceSets
The source sets to be analyzed as part of thecheck
andbuild
tasks. -
isIgnoreFailures
public boolean isIgnoreFailures()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 -
getReportsDir
The directory where reports will be generated. -
setReportsDir
The directory where reports will be generated.
-