gradle-code-quality-tools-plugin / com.vanniktech.code.quality.tools / CodeQualityToolsPluginExtension

CodeQualityToolsPluginExtension

open class CodeQualityToolsPluginExtension

Constructors

<init>

CodeQualityToolsPluginExtension(objectFactory: ObjectFactory)

Properties

checkstyle

val checkstyle: CheckstyleExtension

cpd

val cpd: CpdExtension

detekt

val detekt: DetektExtension

errorProne

val errorProne: ErrorProneExtension

failEarly

var failEarly: Boolean

When set to true all enabled code quality tools will be configured in a way that even a single warning / error will fail the build process.

htmlReports

var htmlReports: Boolean

Global configuration which will be applied on all enabled code quality tools that support html reports.

ignoreProjects

var ignoreProjects: List<String>

List of subprojects identified by their name that should be ignored.

kotlin

val kotlin: KotlinExtension

ktlint

val ktlint: KtlintExtension

lint

val lint: LintExtension

pmd

val pmd: PmdExtension

textReports

var textReports: Boolean

Global configuration which will be applied on all enabled code quality tools that support text reports.

xmlReports

var xmlReports: Boolean

Global configuration which will be applied on all enabled code quality tools that support xml reports.

Functions

checkstyle

fun checkstyle(action: Action<in CheckstyleExtension>): Unit

cpd

fun cpd(action: Action<in CpdExtension>): Unit

detekt

fun detekt(action: Action<in DetektExtension>): Unit

errorProne

fun errorProne(action: Action<in ErrorProneExtension>): Unit

kotlin

fun kotlin(action: Action<in KotlinExtension>): Unit

ktlint

fun ktlint(action: Action<in KtlintExtension>): Unit

lint

fun lint(action: Action<in LintExtension>): Unit

pmd

fun pmd(action: Action<in PmdExtension>): Unit