Sonar Lint warning CA0064

sonarlint

(Konstantin) #1

Description

Output windows contains warning CA0064 “No analysis was performed because the specified rule set could not be loaded or did not contain any managed code analysis rules.”

Repro steps

Step 1.
Sonar Lint is installed in VS 2015.

Step 2.
Solution contains several C# and C++ project.

Step 3.
Sonar Lint is connected to SonarQube server and project is binded
The C# project file contains reference to the rule set SonarQube - ProjectName Sonar way.
Referenced file contains list of rules.

Step 4.
Run Code Analysis for one C# project

Expected behavior

No warning messages

Actual behavior

It looks like code analysis works since I got number of Sxxx warnings, but the Output windows contains warning CA0064 “No analysis was performed because the specified rule set could not be loaded or did not contain any managed code analysis rules.”

2> Running Code Analysis... 2>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. 2> Code Analysis Complete -- 0 error(s), 1 warning(s)
I expect that some problems happens with code analysis and those warnings which I have are not complete result.

Known workarounds

No

Related information

  • SonarLint for VS Version
    4.1.0.3539
  • Visual Studio Version (e.g. Professional v15.4.1)
    Microsoft Visual Studio Professional 2015
    Version 14.0.25431.01 Update 3
  • SonarQube server version
    Community EditionVersion 7.2.1 (build 14109)
  • Languages in your solution (C#, VB.Net, Javascript, C, C++)
    C# and C++