I've connected my solution (Visual Studio 2015) to a SonarQube project. The ruleset is downlaoded, and all projects are linked to the ruleset. Also, all projects have the SonarAnalyzer.CSharp dependency added.
But...
1) The ruleset only contains S* rules:
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="Rules for SonarQube" Description="This rule set was automatically generated from SonarQube." ToolsVersion="14.0">
<Rules AnalyzerId="SonarAnalyzer.CSharp" RuleNamespace="SonarAnalyzer.CSharp">
<Rule Id="S100" Action="None" />
<Rule Id="S1006" Action="None" />
<Rule Id="S101" Action="None" />
<Rule Id="S103" Action="None" />
<Rule Id="S104" Action="None" />
<Rule Id="S105" Action="None" />
.....
But my Quality Profile also contains CA rules (not all!). Shouldn't those rules also be present in this file?
2) Running the analysis, I encounter these warnings:
4> Running Code Analysis...
4>MSBUILD : warning : CA0064 : No analysis was performed because the specified rule set could not be loaded or did not contain any managed code analysis rules.
4> Code Analysis Complete -- 0 error(s), 1 warning(s)
What can I do to fix this?