https://kotlinlang.org logo
#detekt
Title
# detekt
r

Rodrigo Silva

06/01/2020, 8:16 PM
Hi guys. I'm using sonarqube with detekt, but coverage is always 0%. My configuration looks like this:
Someone could help. I don't know where I'm going wrong.
a

Artur Bosch

06/01/2020, 8:20 PM
Note that sonar-detekt does not support code coverage but the official sonarqube sonar-kotlin does. Do you have configured the jacoco plugin? Are there xml reports in the build directory? See how we configured jacoco in detekt : https://github.com/detekt/detekt/blob/master/buildSrc/src/main/kotlin/commons.gradle.kts#L94
r

Rodrigo Silva

06/02/2020, 5:35 PM
@Artur Bosch, if you can help: https://github.com/detekt/detekt/issues/2758
9 Views