I have exclusions configured in a sonarcloud project, and an Azure Devops CI pipeline that looks like this
… which I believe is the correct arrangement of tasks WRT sonar.
One of the exclusions for analysis is
**\*.Tests\**\*.cs (to avoid analyzing unit tests). When I submit a PR and the CI build is triggered, dozens of S**** (sonar analysis) warnings are being emitted during the MsBuild step for files that match the exclusion pattern.
When the pipeline is complete and results uploaded to sonar, there are no issues that correspond to those build warnings in the sonarcloud UI. This tells me that the configuration is correct and is matching and excluding files that I intend it to.
Why is the msbuild task not also doing the same?