Enhancer for the Checkstyle plugin. The Checkstyle tasks will be configured to let the build continue even if violations are found and to be less verbose. Furthermore, the tasks will, unless explicitly configured otherwise, use the configuration file distributed with Quill.
Each task will also have a TransformingReport added to its convention. This report will,
if enabled, create an HTML report from the XML report by applying an XSL transformation.
| Constructor and description |
|---|
CheckstyleEnhancer
(org.gradle.api.Project pProject)Create an enhancer for the CheckstylePlugin. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
configureExtension()Configure the Checkstyle extension with some opinionated defaults. |
|
AbstractCheckTaskEnhancer<org.gradle.api.plugins.quality.Checkstyle> |
createTaskEnhancer(org.gradle.api.plugins.quality.Checkstyle pTask) |
|
static org.gradle.api.reporting.Report |
getHtmlReport(org.gradle.api.plugins.quality.CheckstyleReports pReportContainer)Get the HTMl report from a CheckstyleReports instance. |
|
java.lang.Class<org.gradle.api.plugins.quality.Checkstyle> |
getTaskClass() |
| Methods inherited from class | Name |
|---|---|
class AbstractPluginEnhancer |
configureCodeQualityExtension, configureExtension, createTaskEnhancer, createTemporaryFileSpec, enhance, getTaskClass, removeTestSourceSet |
Create an enhancer for the CheckstylePlugin.
pProject - The project in which the plugin should be enhanced.Configure the Checkstyle extension with some opinionated defaults.
Get the HTMl report from a CheckstyleReports instance. This report was introduced in
Gradle 2.10 and is not present in earlier versions.
pReportContainer - The CheckstyleReports instance to get the HTML report from.Report, or null if CheckstyleReports doesn't have a
getHtml method.