Use SonarLint
in Visual Studio

and detect issues in:
  • C#
  • VB.Net
  • C/C++
  • JavaScript

Benefit from a full integration

And go further

Out-of-the-box, SonarLint reports issues on the files you're editing.
There are a few more options you can use if you wish.

Analyze JavaScript and C/C++

After install, a startup notification will ask for installing support for additional languages. You can also do it anytime in the Visual Studio Options, under the SonarLint menu item. Issues in these languages are detected whenever you save files.

Analyze all files of the project or the solution

If Visual Studio full solution analysis is enabled (see here) you can trigger an analysis under the usual Visual Studio Analyze menu, and SonarLint will report all issues it finds.

Fine-tune the ruleset

SonarLint is integrated with Microsoft Code Analysis framework, rules can therefore be fine-tuned in the .ruleset file used by your project.

Find logs if you need them

In the Output panel, show output from SonarLint. Verbosity can be increased in the VS Options, under the SonarLint menu item.

Connect to SonarCloud or to a SonarQube server

To have rules, issues and exclusions synched. First connect to a server via Manage SonarQube Connections (under Analyze menu). Then, in the Team Explorer SonarQube view, search and bind to a project. If the server-side config changes, you will be notified to Update your local config. Connected Mode only applies for C# and VB.Net code.

Improve software quality and get the most value - find out how you can go further as a team with Connected Mode.

Open Source

Visit our issue tracker, fork SonarLint on GitHub and submit pull requests.

Latest News

Native analysis for C/C++ built-in to SonarLint for Visual Studio 4.12.

Feedback welcome

Get in touch and share feedback on SonarSource Community Forums.