Running an analysis
Now that you've installed SonarLint 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 SonarLint analysis.
For C# and VB.Net, new issues are reported as you type. The rules are run automatically, clicking Analyze > Run Code Analysis is not required.
For the other languages, new issues are reported when you open or save a file.
Check the Investigating issues page for details about how to recognize issues in your IDE.
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 how to manage rules, see the documentation on Rules, which will also include details about how to parameterize Roslyn analyzers.
© 2015-2023, SonarSource S.A, Switzerland. Except where otherwise noted, content in this space is licensed under the GNU Lesser General Public License, Version 3.0. SONARLINT is a trademark of SonarSource SA. All other trademarks and copyrights are the property of their respective owners. See SonarSource.com for everything you need to know about the Sonar Solution.