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.
Join the DZone community and get the full member experience.Join For Free
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.
Published at DZone with permission of Ajitesh Kumar, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.