Articles → SONARQUBE → Integrate Sonarlint And Eclipse
Integrate Sonarlint And Eclipse
Sonarlint
How To Install Sonarlite?
- Go to help → ‘Eclipse Marketplace..’.
- Eclipse Marketplace window will appear. In the find textbox search for sonarlint.
Click to Enlarge
- Click on ‘Install’ button to install sonarlint.
Configure Sonarlint In Eclipse
- Go to Window → Show View → Other..
Click to Enlarge
- A pop up window will appear, click on SonarLint → SonarLint Bindings and click ‘Open’.
Click to Enlarge
- Once you click on ‘Open’, Sonarlint binding window will appear
Click to Enlarge
- Click on ‘Connect to a SonarQube server…’. Following window will appear
Click to Enlarge
- Select Sonarqube and click on ‘Next >’.
- In the next window, enter the server URL and click on ‘Next >’.
Click to Enlarge
- Next step is to choose the authentication method. Click ‘Next >’.
Click to Enlarge
- Next window ask you to set user name and password. Enter the credentials and click ‘Next >’.
Click to Enlarge
- In the next step, the connection will be checked. If the connection is valid then a window will appear to set the connection name. Enter the connection name and click on ‘Next >’.
Click to Enlarge
- Connection gets completed.
Click to Enlarge
- Click on ‘Finish’.
Bind Project
- Right-click on binding and click on ‘Bind Projects…’.
Click to Enlarge
- Following window will appear.
Click to Enlarge
- You can click on ‘Add…’ and a window will appear to select the project
Click to Enlarge
- Select the project and click on Ok. Project gets selected in the parent window. Click on ‘Next >’ to proceed.
Click to Enlarge
- In the next window, you can select the sonarqube project. You can either select the new name or the existing name
Click to Enlarge
- Click on ‘Finish’.
How To Check Issues On Eclipse
- Go to Window → Show View → Console
Click to Enlarge
- Click on ‘Display Selected Console’ and select ‘Sonarlint Console’
Click to Enlarge
- Now change some coding and press CTRL + S
Click to Enlarge
Click to Enlarge