Package org.gradle.api.plugins.quality
Class CodeQualityExtension
- java.lang.Object
-
- org.gradle.api.plugins.quality.CodeQualityExtension
-
- Direct Known Subclasses:
CheckstyleExtension,CodeNarcExtension,PmdExtension
public abstract class CodeQualityExtension extends java.lang.ObjectBase Code Quality Extension.
-
-
Constructor Summary
Constructors Constructor Description CodeQualityExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetReportsDir()The directory where reports will be generated.java.util.Collection<SourceSet>getSourceSets()The source sets to be analyzed as part of thecheckandbuildtasks.java.lang.StringgetToolVersion()The version of the code quality tool to be used.booleanisIgnoreFailures()Whether 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(java.io.File reportsDir)The directory where reports will be generated.voidsetSourceSets(java.util.Collection<SourceSet> sourceSets)The source sets to be analyzed as part of thecheckandbuildtasks.voidsetToolVersion(java.lang.String toolVersion)The version of the code quality tool to be used.
-
-
-
Method Detail
-
getToolVersion
public java.lang.String getToolVersion()
The version of the code quality tool to be used.
-
setToolVersion
public void setToolVersion(java.lang.String toolVersion)
The version of the code quality tool to be used.
-
getSourceSets
public java.util.Collection<SourceSet> getSourceSets()
The source sets to be analyzed as part of thecheckandbuildtasks.
-
setSourceSets
public void setSourceSets(java.util.Collection<SourceSet> sourceSets)
The source sets to be analyzed as part of thecheckandbuildtasks.
-
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
public java.io.File getReportsDir()
The directory where reports will be generated.
-
setReportsDir
public void setReportsDir(java.io.File reportsDir)
The directory where reports will be generated.
-
-