3
votes

I am using - .NET framework 4.5.2, SonarQube 5.0, sonar runner 2.4, Analysis Bootstrapper for VS plugin 1.2, C# plugin 3.3.

When I run SonarQube analysis, I see my .sln file being found, files get recognized as CS, files get indexed, Analysis Successful message gets displayed on the console. But when I see the dashboard of the project on SonarQube server, I see no metrics getting reported. Even LOC, Duplications, Complexity widgets say 'No Data'.

Whereas, on the same setup, I am able to run few other C# projects successfully. I am unable to figure out, what is wrong with the config for this project.

Regards, Anantha

1

1 Answers

1
votes

A possible is that your project is being recognized as a test project, for which metrics and issues are not imported in SonarQube. By default, it tests for the presence of test or Test in your project name. Check the logs at the beginning of the analysis to see how the Visual Studio Bootstrapper Plugin detected your projects. You can change this behavior by setting the sonar.visualstudio.testProjectPattern property to a different (Java) regular expression.