Skip to content

417-72KI/danger-kotlin-checkstyle_format

Repository files navigation

danger-kotlin-checkstyle_format

publish Maven Central

Danger-Kotlin plugin for processing checkstyle formatted xml file.

Installation

Put

@file:Repository("https://repo.maven.apache.org/maven2/")
@file:DependsOn("io.github.417-72ki:danger-kotlin-checkstyle_format:0.1.0")

to the top of your Dangerfile.df.kts

Usage

// Required to register the plugin
register plugin CheckstyleFormat

danger(args) {
    // You should run `./gradlew KtlintCheck` with `checkstyle` reporter before executing `Danger-Kotlin`.
    CheckstyleFormat.reportKtlint()
}

See Dangerfile.df.kts for more specific usage.