Post date: Jun 23, 2016 6:06:12 AM
SonarLint is an extension to your favorite IDE that provides on-the-fly feedback to developers on new bugs and quality issues injected into their code.
How to install SonarLint:
1. In your Eclipse IDE, Go to "Help" -> Eclipse Marketplace.
2. Search for "SonarLint", And Install plugin. Choose default options, accept terms & conditions and click "Finish". Restart Eclipse.
3. After installation, Go to your project, Right click on it. You will see "SonarLint" in right click options.
4. Choose SonarLint -> Bind a SonarQube project.
5. Bind to remote sonarqube server.
Provide server url: http://hldbtest.global.triniti.com:9001/
Username and password are not needed. Test Connection.
Click on "Finish" to persist the binding.
6. You should now see SonarQube overlay on your bound project icon.
7. Right click on your project, And go to Properties.
8. Click on "SonarLint" in left pane and Uncheck "Run SonarLint automatically" option.
9. Choose any class from your project, right click on the class, go to SonarLint -> And Analyze. Your code will be analyzed.
10. After analyzing, it will show suggestions in blue marks. Please find screenshot below.
That's it, you can now code and see SonarLint reporting issues based on remote SonarQube configuration.
Cheers!
General settings related to sonarLint can be found at:
Navigation: Window -> Preferences: