Skip to content

Installation

kevin-hinz edited this page Aug 21, 2023 · 5 revisions

Information

The content on this page has moved: https://docs.sonarsource.com/sonarlint/eclipse/getting-started/installation/

The SonarLint documentation has a new home! Please visit https://docs.sonarsource.com/sonarlint/eclipse/ to check out the new documentation website. We’ve improved the documentation as a whole, integrated the four SonarLint IDE extension docs together, and moved everything under the sonarsource.com domain to share a home with the SonarQube docs (SonarCloud to come in Q3 of 2023).

These GitHub wikis will no longer be updated after September 1st, 2023 but no worries, we’ll keep them around for a while for those running previous versions of SonarLint for Visual Studio.

Overview

SonarLint is an Eclipse plugin, provided as an update site.

First be sure to check the requirements.

Online installation using the Eclipse Marketplace client

The simplest way to install SonarLint is to use the Eclipse Marketplace client. See the Getting Started tutorial for more details.

ℹ️ By using this method, you will be automatically notified of new updates of SonarLint (assuming you have allowed Eclipse to check for updates).

Online installation using the Eclipse Install New Software wizard

Official Eclipse documentation

If you can't use the Eclipse Marketplace client, you can still use directly the SonarLint update site.

  1. Open Install New Software

Install new software

  1. Click on the Add... button to add a new repository pointing to https://eclipse-uc.sonarlint.org. Give the repository a meaningful name.
    Don't worry if you can't open this URL in your web browser, Eclipse will automatically look for files compositeContent.xml and compositeArtifacts.xml

Add Update Site Add Update Site Online

  1. Select the just added SonarLint repository, and tick the SonarLint for Eclipse feature

Select feature online

  1. Review the features about to be installed, and click Finish

Confirm feature

  1. When requested, restart you IDE

ℹ️ By using this method, you will be automatically notified of new updates of SonarLint (assuming you have allowed Eclipse to check for updates).

Offline installation using the Eclipse Install New Software wizard

If you can't perform an online installation, you can use a SonarLint repository archive.

  1. Manually download the latest archive (.zip) of the SonarLint repository from https://binaries.sonarsource.com/?prefix=SonarLint-for-Eclipse/releases/

  2. Open Install New Software

Install new software

  1. Click on the Add... button to add a new repository. Click on the Archive... button to select the zip file you have downloaded. Give the repository a meaningful name.

Add Update Site Add Update Site Archive

  1. Select the just added repository, and tick the SonarLint for Eclipse feature

Select feature offline

  1. Review the features about to be installed, and click Finish

Confirm feature

  1. When requested, restart you IDE

⚠️ When using this method, you will not be notified for new updates of SonarLint.