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

2k views Asked by At

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.

1

There are 1 answers

15
Dinesh Bolkensteyn On BEST ANSWER

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).