Skip to content

Conversation

@mattinannt
Copy link
Member

This pull request updates the sonar-project.properties file to refine the coverage exclusions for SonarQube analysis, ensuring that specific generated and model-related files are excluded from coverage metrics.

The rationale for these exclusions:
/model//.kt: These are data classes and models that only contain properties and basic serialization. They don't contain business logic that needs testing.
/generated//
: Generated code should not be included in coverage metrics as it's automatically generated and maintained.
**/Binding.kt, **/BindingImpl.kt: DataBinding related files that are generated by the Android framework.
**/
_Factory.kt, **/
_MembersInjector.kt: Dependency injection related generated files.

Updates to SonarQube configuration:

  • sonar-project.properties: Expanded sonar.coverage.exclusions to include additional file patterns for exclusion, such as **/model/**/*.kt, **/generated/**/*, and several specific file suffixes like *Binding.kt, *BindingImpl.kt, *_Factory.kt, and *_MembersInjector.kt. This helps to exclude non-essential or auto-generated files from coverage analysis.

@mattinannt mattinannt merged commit dc52b4e into main May 14, 2025
4 checks passed
@sonarqubecloud
Copy link

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.

2 participants