Closed ZergHunter3000 closed 5 years ago
Hey, having the same problem here, since august there are no coverage reports anymore...
Update; I made it further, it wasn't properly pulling in the plugin for some reason. However, I did end up getting stuck on what seems to be an issue with detekt:
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.5.0.1254:sonar (default-cli) on project eems-server: The rule 'DetektRuleKey(repositoryKey=detekt-kotlin, ruleKey=ConstructorParameterNaming, active=true, issue=Issue(id='ConstructorParameterNaming', severity=Style, debt=5min))' does not exist. -> [Help 1]
Still rather confusing.
I'm not sure how I progressed but now the error is with ruleKey=LongMethod. I must have something wrong with detekt I'm guessing. This is when I run sonar:sonar.
Any updates?
@ZergHunter3000 do you have more stacktraces for me?
Hm ConstructorParameterNaming
is a rather new rule (August) but should be inside version 0.5.2
.
A minimal kotlin project where jacoco is configured would help debugging.
This should be fixed in master now. Feel free to reopen if it does not work for you in the next version.
If you have issues with Kotlin coverage not taken by sonar when having a mixed source project (java and kotlin). It might be just a gradle configuration to do: Sonarqube not picking up both Kotlin and Java Coverage gradle project
I am unable to get code coverage to appear for Kotlin files in SonarQube. The coverage reports are generated by JaCoCo, and are visible in the outputted .html documents, indicating it does recognize that my Kotlin files are covered. Yet, when running mvn sonar:sonar, only the Java coverage makes it through to SonarQube. I also see Kotlin references in the jacoco.xml file.
My properties look as such:
I also am running versions: JaCoCo v0.8.2 Sonar-Kotlin v0.5.2 SonarQube 7+ (have tried 6 as well)
Any thoughts or ideas on this weird situation?