Skip to content

Connected Mode

Julien HENRY edited this page Oct 16, 2020 · 13 revisions

Overview

You can connect SonarLint to SonarQube >= 6.7 or SonarCloud to aim at having consistent issues reported on both sides.

Features when connected mode is used:

  • use the same analyzers than the server, assuming they are supported in SonarLint
  • use the same quality profile (same rules activation, parameters, severity, ...)
  • reuse some settings defined on the server (rule exclusions, analyzer parameters, ...)
  • automatically suppress issues that are marked as Won’t Fix or False Positive on the server

Note: connected mode does not push issues to the server. Rather, its purpose is to configure the IDE so that it uses the same settings as the server.

Configure a connection

A connection is the set of informations needed to communicate with the SonarQube server or SonarCloud (URL, credentials, ...).

Configure a connection to a SonarQube server

  1. Open the connection wizard, for example using menu File -> New-> Other... and then SonarQube/SonarCloud Connection: New Connection

  2. Select SonarQube and click on the Next button:

Select SonarQube

  1. Enter your SonarQube server URL:

Set URL

  1. Choose the authentication method:
  • Token: you will have to generate a token on SonarQube, to be used by SonarLint as authentication method. This is the preferred way to avoid the risk to compromise your username/password.
  • Username + Password: use directly your SonarQube credentials (not recommended)

Choose auth

  1. Enter your token or username/password

  2. Give your connection a name

Configure a connection to SonarCloud

Configure project(s) binding

Troubleshooting

Why I have some issues reported on SonarQube/SonarCloud but not in SonarLint?

TODO: copy from the FAQ

SSL/proxy issues

Clone this wiki locally