Export/Import Visual Studio 2015 rule set into SonarQube : <p><strong>Environment</strong>: We are building C# code within Visual Studio 2015 and generating CodeAnalysis report using default ruleset available within Visual Studio 2015.<br/><br/>
<strong>Problem Statement</strong>: While running same code into SonarQube integrated with our Continuous integration environment Jenkins, we are getting different Code analysis report, so we want to import <em>default</em> rule set of Visual studio 2015 to be used within SonarQube 5.6 or later (<em>I am ready to upgrade Sonar if there is solution</em>). But problem is SonarQube is not able to recognize ruleset starting with <strong>CS</strong>, like..</p>

<pre><code>&lt;Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp" RuleNamespace="Microsoft.CodeAnalysis.CSharp"&gt;
&lt;Rule Id="AD0001" Action="Error" /&gt;
&lt;Rule Id="CS0028" Action="Error" /&gt;
&lt;Rule Id="CS0078" Action="Error" /&gt;
&lt;Rule Id="CS0105" Action="Error" /&gt;
&lt;Rule Id="CS0108" Action="Error" /&gt;
&lt;Rule Id="CS0109" Action="Error" /&gt;
</code></pre>

<p>I already have following plugins installed:</p>

<ol>
<li><strong>Code Analyzer for C#</strong></li>
<li><strong>CodeCracker for C#</strong></li>
</ol>
