Skip to content

mariusgreve/danger-kotlin-reporter-plugin

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages