Sonarqube 9.9.8 coverage.exclusion not working

Hello!

Updated sonarqube from 8.9.1 to 9.9.8 (community edition)
Since this update the coverage exclusion is not working

I’ve already checked:

  • General settings/Analysis scope → the exclusion data is there (successfully migrated)
  • Project settings/Background tasks/Scanner context → Either the properties of module and the global settings contain the coverage exclusion data

I’ve seen similar topics f.e.:

But in this case the conclusion was that some kind of overwritten action happened but in my case nothing changed in the settings or project side, i’ve just updated the sonarqube.

Format example of an exclusion data: **/Database/Providers/**/*.cs → expecting remove any .cs file from the scanning recursively under the /Database/Providers/ folder

Thank you for your support in advance!

That’s an interesting exclusion pattern and not one I would expect to work (in any version). Have you tried **/Database/Providers/**/*.cs

If that doesn’t work, I suggest sharing your full DEBUG scanner logs (/d:sonar.verbose=true) and point to a specific file you expect to be excluded that isn’t.

Hi!

Sorry, somehow the ‘bold’ formatting change the pattern but yes that is the pattern without double ** in the end/beginning
I am editing the original post.
Thank you, will try to run w/ debug scanner logs.