Running an analysis

How to run a SonarQube for IDE analysis in your Visual Studio IDE.

Now that you’ve installed the SonarQube for IDE extension in your IDE, running an analysis is straight-forward. For the most part, new analyses are automatically triggered when you open a file, as you type, or with each file save following a change in the code. Below we’ve outlined other ways to trigger a SonarQube for IDE analysis.

Triggering an analysis

First, open a project containing C#, VB, C++, JavaScript, or TypeScript files. New issues will be reported when you type, open, or save a file. Issues are highlighted in your code and also listed in the Error List tool window; see the Finding issues article for more information.

The Investigating issues page has all the details you need to know about recognizing SonarQube issues in your IDE.

Analysis results

The status bar indicates that an analysis is running and will update when (the analysis is) finished:

Issues are highlighted in your code and also listed in the Error List. Sonar Rule descriptions appear when you hover over code that triggered an issue:

To get a detailed description, click the error code or right-click the error in the Error List and select Show Error Help.

For details on managing rules, see the Rules and languages page. It will also include details about parameterizing Roslyn analyzers.

Last updated

Was this helpful?