Over a million developers have joined DZone.

SonarLint for Eclipse — Proactive Code Quality Checks

How to get started using SonarLint with Eclipse to get on-the-fly feedback on code quality issues while using the IDE.

· DevOps Zone

Download “The DevOps Journey - From Waterfall to Continuous Delivery” to learn learn about the importance of integrating automated testing into the DevOps workflow, brought to you in partnership with Sauce Labs.

This blog talks about the SonarLint tool for Eclipse IDE, which can used by developers to get on-the-fly feedback for code quality issues while coding. This feature was always one of the most awaited features of Sonar and thankfully, it’s out there for Java, Javascript, and PHP developers to try for themselves.

The following is how to get started:

  • To download and install SonarLint for Eclipse from within Eclipse IDE, all you need to do is go to this page (http://www.sonarlint.org/eclipse/) and click on the “Marketplace” button which takes you to the install page. Drag and drop the “install” button into your eclipse workspace and it should start downloading and installing.
  • Restart Eclipse and you are all set.

I tested it with a HelloWorld program and got following code quality assistance. Note the information such as “Replace this usage of System.out or System.err by a logger”.


In the current version, SonarLint does not support integration with SonarQube server. The integration of SonarLint with SonarQube server would achieve some of the following objectives:

  • Each project could set their own code quality rules (or configure rules) in SonarQube server.
  • The project teams would then be able to validate their code using SonarLint against the rules set for that project team.

The above would help the developers avoid the code quality issues much before they appear in the Sonar dashboard.

Feel free to try it out or recommend it for your projects. The downside (as I have not yet tested) is that it may slow your environment because a background task always running and checking the code quality issue. However, you could disable this by right-clicking on the project and disabling SonarLint.

Discover how to optimize your DevOps workflows with our cloud-based automated testing infrastructure, brought to you in partnership with Sauce Labs

sonar ,lint ,eclipse

Published at DZone with permission of Ajitesh Kumar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}