Sonar.coverage.exclusion is not affecting in sonarqube server

I have added the folders to sonar.coverage.exclusion variable but it is not affecting in sonarqube server.

Thanks

Hi,

I guess the question is “why not?”

Could you share your exclusion value?

 
Ann

sonar.coverage.exclusion=“* /foldername1/ *, * /foldername2/ *”

Hi,

I see that you’ve got spaces in your pattern; probably not what you want. Also, ** is the pattern for 0-n directories, which is probably what you intended at the beginning of each pattern? Something like

sonar.coverage.exclusion=**/foldername1/*,**/foldername2/*

You can find the documentation on the recognized wildcards both in-app and in the docs.

 
Ann