Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To fully take advantage of SonarQube in EclipseIntelliJ, it is recommended that your project is already being analyzed on a regular basis by SonarQube. Indeed, you'll get features such as only displaying new issues that you have introduced.

However, if you want to give SonarQube in Eclipse IntelliJ a quick try, you just have to first declare your project through the SonarQube web interface.

Setting SonarQube Servers

Go to Window File > Preferences Settings > SonarQube > Servers.

SonarQube in Eclipse is pre-configured to access a local SonarQube server listening on http://localhost:9000/. You can edit this server, delete it or add new ones.
Image Removed

to add, edit or remove SonarQube servers:

Image Added.

Linking a Project to One Analyzed on a SonarQube Server

...

Once the SonarQube server is defined, the next step is to link your Eclipse IntelliJ project with a project defined on this SonarQube server.

To do so, right-click on the project in the Project Explorer, and then Configure > and click on Associate with SonarQube. ..:

Image Removed

In the SonarQube project text field, start Start typing the name of the project and select it in the result list box:

Image Removed

...

Info
titleAutomatic association for Maven projects
Note that for Maven projects, the association is performed automatically.

Image Added

Changing linkage

At any time, it is possible to change the project association.

To do so, right-click on the project in the Project Explorer, and then SonarQube > Change Project and click on Update SonarQube Association...:

Image Removed

Unlinking a Project

To do so, right-click on the project in the Project Explorer, and then SonarQube > Remove SonarQube Nature:

Image Removed

Advanced Configuration

Additional settings (such as markers for new issues) are available through Window > Preferences > SonarQube:

Image Removed

, go to Update SonarQube Association..., then click on Remove Association.


You are now all set with configuration and you can start using SonarQube in EclipseIntelliJ.