Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SonarLint plugin IntelliJ with no authentication

Is it possible to connect to a remote SonarQube 5.6.1 server using the SonarLint 3.0.0 plugin for IntelliJ 2017.1 without using authentication by default? Currently the plugin seems to want either username/password OR token

like image 772
Woot4Moo Avatar asked Jul 07 '17 16:07

Woot4Moo


1 Answers

There is a hack which you can use:

Normally sonarLint stores the information in your IntelliJConfiguration-directory in config/options/sonarlint.xml - you can simply paste following configuration into that file:

<application>
  <component name="SonarLintGlobalSettings">
    <option name="sonarQubeServers">
      <list>
        <SonarQubeServer>
          <option name="hostUrl" value="<your-server-url>" />
          <option name="name" value="test" />
          <option name="login" value="" />
          <password />
          <organizationKey />
        </SonarQubeServer>
      </list>
    </option>
  </component>
</application>

which is the basic configuration for a server without authentication.

// EDIT: It seems like this was an intended change by sonarSource to sonarLint - https://groups.google.com/forum/#!topic/sonarlint/xnpQmXN8NEo - is the mailing list discussion about this

like image 194
Simon Schrottner Avatar answered Sep 29 '22 23:09

Simon Schrottner