I'm using TFS on-premise with Build vNext and the SonarQube Task (Begin/End) and wan't to exclude certain folders from analysis.
We tried sonar.exclusions defined in the Analysis Scope but it looks like this is not working for the MSBuild Scanner.
We also tried to specify a settings file on the task and even we modified the shipped SonarQubeAnalysis.xml to check if the exlusions are working.
This is what we see in our build log:
Excluded sources:
some path\MockData\**
Analyzer working directory contains 5 .pb file(s)
108 files indexed
0 files ignored because of inclusion/exclusion patterns
Even with the specified exlcude pattern the files in the MockData folders are still indexed and analyzed.
Is there a documentation on how to specifc folder exclusions for the MSBuild Scanner?
Version Info:
SonarQube Task V2.1.0
SonarQube Scanner for MSBuild V2.3.1
Thanks,
Georg