Sonarqube cannot filter some directories in dynamic modules

I try to exclude some directories in dynamic modules in Android project but after push Jacoco report in Sonarqube, the files that I want to exclude is appear. Would you mind to check it please.

Jacoco : org.jacoco:org.jacoco.core:0.8.6
Sonar-gradle : org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3
Gradle version : 6.5


Welcome to the community!

Can you add -Dsonar.scanner.dumpToFile=[path to file] to your analysis command line? From that we’ll be able to see what parameter values analysis is actually getting.


I add your recommend command line and I see this line is weird for me
For example

so my project structure like this
– app
– features
---- landing

Parameter in Sonarqube command line (I use FastLane)
Screen Shot 2565-01-28 at 19.19.44


I’m not sure about But the original question was about exclusions. What are the final values you see for them? Also, can you share your analysis log?


I try to dump the file and I fix sonar config like in file that is dump (change “:features” to :features.:features) Now it can filter the file, thank you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.