SonarLint spots bugs and quality issues as fast as you code.
SonarLink is an extension for Microsoft Visual Studio 2019 which makes it easy to visualize SonarQube issues. It enables you to connect your local solution to a SonarQube server, allowing you to retrieve issues directly from within the IDE. Universal solution that support all programming languages. In the SonarLint Rules view in the explorer, you can activate and deactivate rules to match your conventions. There is also a code action on each issue to quickly deactivate the corresponding rule. Find logs if you need them In the Output panel, show output from SonarLint.
- 5 languages supported: C#, VB .Net, C, C++ and Javascript.
- Open source, Roslyn based code analyzers.
- Deep code analysis algorithms using pattern matching and dataflow analysis
- Hundreds of rules, and growing.
- Comes with explanations to resolve detected issues.
Get started in seconds
Simply open a file within a project or a solution, start coding, and you will start seeing issues detected by SonarLint.
Visit SonarLint website: https://vs.sonarlint.org
Smart code analysis, on the fly
Detect quality issues as you code
SonarLint gives immediate feedback on bugs, code smells and vulnerabilities.
Remain focused and productive
SonarLint lists issues found in all the files that you updated. It subtly points out these issues so that you can still focus on coding.
Get clear explanations to fix issues
SonarLint provides you with all the information you need to understand and fix issues.
Fully integrated in Visual Studio
SonarLint leverages the .NET Compiler Platform ('Roslyn') to offer a fully integrated Visual Studio experience.
Check the rules to see what SonarLint can do for you:
C# | See rules |
VB.NET | See rules |
C | See rules |
C++ | See rules |
JavaScript | See rules |
SonarQube and SonarCloud connected mode
SonarLint can be connected to a SonarQube server or SonarCloud to share rulesets, get event notifications and use a resolution flow.
Learn more about SonarQube.
Have question or feedback?
The preferred way to discuss about SonarLint is by posting on the SonarSource Community Forum. Feel free to ask questions, report issues, and give suggestions.
How to contribute
Check out the contributing page to see the best places to log issues and start discussions.
License
Copyright 2016-2020 SonarSource.
Licensed under the GNU Lesser General Public License, Version 3.0
Click to see full answer.
Also know, how do I use SonarLint code in Visual Studio?
Using SonarLint in your projectAdd in the SonarQube server, username, and password information. Once you connect, you will see SonarLint connect to the SonarQube server. Then you will see a screen that will ask you to select a SonarQube project to bind your solution to.
Secondly, what is difference between SonarQube and SonarLint? SonarQube is a server where you can host your projects and execute analysis, whereas SonarLint is an agent that allow us to connect with this SonarQube and execute the analysis remotely. SonarLint can be used with IDE or can also be executed via CLI commands.
Keeping this in view, how do you use SonarLint?
Eclipse->help->Eclipse MarketPlace->Type sonarLint ->click install (Restart eclipse after it has been installed successfully). Step 3: To run sonarLint automatically, enable the checkbox under project properties. It helps developers to highlight errors and bugs while writing code.
How do I connect SonarLint to SonarQube?
Sonarlint Visual Studio 2019
Not able to connect to sonarqube server using sonarlint version 4.0.0.201810170711
Sonarlint Visual Studio 2017
- Open SonarLint Bindings tab.
- Click “Connect to a sonarqube server”
- Select “Sonarqube” and click next.
- Give your credentials (either user name/password or token)
- Give a connection name.