Shows checkstyle type issues in your PR with Danger Kotlin.
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.