Following is how one could get started:
- One needs to download and install SonarLint for eclipse within Eclipse IDE. All one needs to do is go to this page (http://www.sonarlint.org/eclipse/ ), click on “Marketplace” button which takes you to install page. Drag and drop “install” button in your eclipse workspace and it would start downloading and installing.
- Restart the eclipse and you are all set.
I tested with 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 the integration with SonarQube server. The integration of SonarLint with SonarQube server would achieve some of the following objectives
- Each project would be able to set their own code quality rules (or configure rules) in sonarqube server.
- The project teams would, then, be able to validate their code using Sonar length 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 in your projects. The downside (as I have not yet tested) is that it may slow your work because of a background task always running and checking the code quality issue. However, you could disable the run by right-click clicking on project and disabling the SonarLint.
Follow him on Twitter and Google+.
Latest posts by Ajitesh Kumar (see all)
- Top 6 Freelance Jobs Websites for 2016-2017 - January 23, 2017
- AngularJS, Angular-UI Router Hello World Starter App – Code Sample - January 22, 2017
- Microservices, Continuous Delivery & AWS Cloud – Part 1 - January 16, 2017