About sonar exlusion

Hi Everyone,

I have to exclude some of my file in sonarqube developer edition but still its showing on sonar portal:

sonar.exclusions=/data/repository/patientapp-ios/Pods/

I used above on sonar-project.properties file but still same. Anyone can help please?

PFA.

still showing pods folder on portal.

Hi,

There’s a mismatch between the path SonarQube is showing you (Pods/…) and the one you’re providing to analysis (multiple/directories/then/Pods). Further, I think you need to exclude the files in the directory. So something like:

sonar.exclusions=**/Pods/**/*.*

Despite what I said about the path to Pods, I started with a leading ** (0-n directories) just to be safe. It would probably work without it.

 
Ann