Skip to content

Conversation

@gpunto
Copy link
Collaborator

@gpunto gpunto commented Nov 24, 2025

I've had the idea to test the sonar configuration by publishing the analysis in a local sonarqube instance and found a couple of things to improve:

  • Added kotlin source directories to Android sourcesets so they are picked up automatically for the analysis
  • Fixed wrong path to the kover report (it was looking at the root since it started with /)
  • Use isSkipProject for properly excluding modules from sonar analysis

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the SonarQube configuration for coverage analysis by fixing path issues and ensuring proper module exclusion handling.

  • Fixed incorrect kover report path that was using an absolute path instead of relative
  • Ensured sonarqube plugin is applied before configuration to properly support module exclusion
  • Added Kotlin source directories to Android sourcesets for better Sonar analysis coverage

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
plugin/src/main/kotlin/io/getstream/android/coverage/CoverageConfiguration.kt Fixed kover report path and improved module exclusion by applying sonarqube plugin earlier and using isSkipProject
plugin/src/main/kotlin/io/getstream/android/BaseConfiguration.kt Added Kotlin source directories to Android sourcesets for Sonar analysis

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gpunto gpunto marked this pull request as ready for review November 24, 2025 12:36
@gpunto gpunto requested a review from a team November 24, 2025 12:37
@aleksandar-apostolov aleksandar-apostolov merged commit 768170f into develop Nov 25, 2025
12 checks passed
@aleksandar-apostolov aleksandar-apostolov deleted the coverage-improvements branch November 25, 2025 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants