mariusgreve / danger-kotlin-reporter-plugin

Shows checkstyle type issues in your PR with Danger Kotlin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maven Central

danger-kotlin-reporter-plugin

Shows checkstyle type issues in your PR with Danger Kotlin.

Works with ktlint and Detekt.

Setup

Add the following dependency to your Dangerfile.df.kts file

@file:DependsOn("com.mariusgreve:danger-kotlin-reporter-plugin:0.1.0")

Register the plugin before the danger initialisation function and use like this:

register plugin CheckstyleReporterPlugin

danger(args) {
    CheckstyleReporterPlugin.report {
        pattern = "**/build/reports/{ktlint,detekt}/**.xml"
    }
    
    ...
}

The pattern accepts any glob syntax.

About

Shows checkstyle type issues in your PR with Danger Kotlin.

License:Apache License 2.0


Languages

Language:Kotlin 100.0%