What is sonarLint and why do we need it? A free IDE Extension that lets you fix coding issue before they existsLike a spell checker, SonarLint highlights Bugs and Security Vulnerabilities as you write code, with clear remediation guidance so you can fix them before the code is even committed. Across popular IDEs (Eclipse, IntelliJ, Visual Studio, VS Code) and popular programming languages, SonarLint helps all developers write better and safer code!
What are the benefits of using sonarLint?
- Markers automatically appear on quality issues when opening a file.
SonarLint highlights code issues with markers on open files. It also provides an issues summary table for a selected component in the IDE, including the creation time of the issue.
- Issues appear as you type code.
SonarLint offers the ability to see problems as you code, like a spell checker for text. This is done by subtly pointing out the issue without distracting the developer so that he can focus on code but is still notified of the issue.
- Error descriptions come with issue detection.
Once SonarLint detects an issue, it also shows the associated documentation to help the developer understand the issue and why it is a problem. It gives a compliant and non compliant code example and shows how to resolve the example issue. Easy, powerful and fun to use: a good way for developers to learn.
- Push Notifications
Get real-time code quality notifications in your IDE as you work. Track Quality Gate status (failed, passed, warning) or that an analysis has assigned a new issue to you.
Other available options with similar functionality: 1.Sonarcloud 2.SonarQube
Now we need to integrate the SonarLint with the IDE, Following are the steps that are involved in it.