Company
Date Published
Author
Peter-John Welcome
Word count
644
Language
English
Hacker News points
None

Summary

You have a Kotlin Android app and you want SonarQube code coverage reports, as explained by Peter-John Welcome in his guide. He used the Sonar-Kotlin plugin to achieve this, which integrates with detekt for static code analysis, but required some setup due to differences between Java and Kotlin class file locations. To get started, he installed the Sonar-Kotlin plugin on a CI pipeline using Bitrise, adding custom properties to the scanner step. He then ran a gradle command to generate a Jacoco report, which was used by the SonarQube scanner task to display code coverage reports for both Java and Kotlin code in his Android app.