detekt / sonar-detekt

SonarQube plugin for Kotlin
https://detekt.dev
GNU Lesser General Public License v3.0
493 stars 52 forks source link

Add support for ktlint reports #84

Closed 4brunu closed 5 years ago

4brunu commented 5 years ago

Hi, first of all, thanks for this amazing plugin! I need to send ktlint reports to SonarQube, but from what I looked into, this is not supported, or is it? Thanks

arturbosch commented 5 years ago

Hey, thanks for the kind words. Unfortunatelly the formatting rule set is not yet supported in sonar-kotlin (which wraps KtLint in detekt). I think just adding the detekt-formatting dependency into pom.xml would just work out of box.

4brunu commented 5 years ago

And what about just lint report, without formatting?

arturbosch commented 5 years ago

Yes, detekt-formatting can just produce the lint report of KtLint without actually formatting. This will be the only supporting feature in sonar-kotlin as we do not want to mess with users code.