I’m using the VTS Task version 4 and the properties set in Additional Properties from task Prepare analysis on SonarQure are ignored by the Run code analysis. The properties are detected but the files to be ignored are analyzed.
Well you do see the exclusions in the analysis logs, which means that they’re not really ignored, and do make their way from the task config to the actual analysis.
All in all seems like you need to dig down why the exclusion patterns are actually not effective. A good approach whenever troubleshooting logs is to simply enable debug logs of the analysis, and then compare filepaths:
for the file that you expected to be excluded, what is the filepath that is treated during the analysis ?
compare that to the exclusion pattern you set, and see if it might relate to some casing/relativity/else
Thank you, it helps a lot. However, I think it’s not working as intented. Please find enclosed the folder structure.
So, if I want to exclude wwwroot folder, I have to enter: sonar.exclusions=wwwroot\**\*
If I set : sonar.exclusions=src\ProjectA\wwwroot\**\* ==> it does not work.
So I have no way to exclude folder TestProjectA et TestProjectB for example.
Well, keep in mind that this forum is an open/community one. There are shared benefits to work based on generic/minimal reproducers that can be viewed/used by all.
In that spirit, are you (or @mark.hiscocks ) able to reproduce this with a minimal sample project, for which you could share full debug logs here ?