I have a C# project that also includes som test user interface that should not be investigated by SonarCube, (SonarCube is invoked by teamcity)
I would like the following folders and all content to be ignored by SonarCube
- .\src\ExamplePredictionCascadingResourceProvider (should be ignored by local rule)
- .\src\TestPredictionCascadingGUI (should be ignored by local rule)
- .\src\VM.PredictionCascade.Tests (should be ignored by global rule **/Tests/.cs)
I have added the first folder in the userinterface for the local sonarcube project in sonar.exclusions, but there are still issues from the sourcecode in that folder.
In the SonarQubeAnalysisConfig.xml the value seems to end up fine
besides the project exlusion there are the following global exclusions
- <Property Name="sonar.global.exclusions">**/bin/x64/,/bin/x86/,/packages/,/obj/x64/,/obj/x86/,/src//bin/,/src//obj/,/AssemblyInfoAppend.cs,**/AssemblyInfo.cs</Property>
- <Property Name="sonar.global.test.exclusions">**/Test/.cs,**/Tests/.cs</Property>
for other projects the same value of 'sonar.global.test.exclusions' seems to work
so I am quite puzzled, and don't really know where to start to investigate why the files are inlcluded... Could it be because I changed the 'exclusions' after creating the project, and then sonarcube remembers the previous issues?
Any hints on what the problem is or what to investigate?