Search code examples
sonarqubesonarqube5.1sonarqube-msbuild-runner

Equivalent for sonar.visualstudio.skippedProjectPattern in MSBuild Runner?


This is a second question based on the same situation described in my last question.

We have a number of projects that get built several times, as they are included in several different solutions. Yet we only want them to be analyzed once, each as part of a specific solution. How do we exclude these project from analysis when analyzing the other solutions? I have tried passing /d:sonar.visualstudio.skippedProjectPattern=... on the MSBuild.SonarQube.Runner command line but it seems to have no effect.


Solution

  • There is no equivalent to sonar.visualstudio.skippedProjectPattern in the MSBuild SonarQube Runner 1.0. I've created a ticket to the backlog http://jira.sonarsource.com/browse/SONARMSBRU-123 to consider adding this feature in a future release.