Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I integrate ReSharper's Dotsettings File in SonarQube?

I have a C# Project with a ReSharper Dotsettings file. I want to configure Sonar so that it uses my Dotsettings file. In my Dottsettings file i disabled many Rules. How can I integrate this file in SonarQube?

This is my sonar-project.properties file (just the ReShaper part):

#ReSharper
sonar.resharper.mode=
sonar.resharper.dotSettings.path=MyProject/ReSharper7-Coding-Style.dotsettings

I also have the same problem with StyleCop. This is my sonar-project.properties file (just the StyleCop part):

# StyleCop 
sonar.stylecop.mode=
sonar.stylecop.projectFilePath=MyProject/Settings.StyleCop

fyi: I run the SonarQube analysis with Bamboo.

like image 528
Anaa Avatar asked Jun 09 '15 08:06

Anaa


1 Answers

You cannot use an existing .DotSettings file with SonarQube's R# plugin at the moment.

This feature however will be added in the upcoming release of the R# plugin, refer to http://jira.sonarsource.com/browse/SONARRSHPR-15 for details.

Note: The re-use reports mode was already supported in the past (with the C# plugin version 2.x), but has since been removed (since 3.x).

like image 73
Dinesh Bolkensteyn Avatar answered Nov 06 '22 20:11

Dinesh Bolkensteyn