【问题标题】:SonarLint plugin IntelliJ with no authentication没有身份验证的 SonarLint 插件 IntelliJ
【发布时间】:2017-07-07 16:09:53
【问题描述】:

是否可以使用SonarLint 3.0.0 插件为IntelliJ 2017.1 连接到远程SonarQube 5.6.1 服务器而不默认使用身份验证?目前该插件似乎需要username/passwordtoken

【问题讨论】:

  • 我只是将这些字段留空,并且正在使用匿名登录
  • @SimonSchrottner 如果该设置中没有值,它会阻止向导继续前进。
  • 你是完全正确的,在向导中没有看到更新 - 我将发布一个 hack 作为答案:D

标签: authentication sonarqube sonarlint


【解决方案1】:

您可以使用一个 hack:

通常 sonarLint 将信息存储在 IntelliJConfiguration-directory 中的 config/options/sonarlint.xml 中 - 您只需将以下配置粘贴到该文件中即可:

<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>

这是没有身份验证的服务器的基本配置。

// 编辑:看来这是 sonarSource 对 sonarLint 的有意更改 - https://groups.google.com/forum/#!topic/sonarlint/xnpQmXN8NEo - 是关于此的邮件列表讨论

【讨论】:

  • 啊非常好。我猜测启用代理的关键是“代理”是否正确
  • - 如果您需要代理的特殊选项,请告诉我,我可以在旧插件版本上尝试
猜你喜欢
  • 2018-10-02
  • 1970-01-01
  • 1970-01-01
  • 2021-10-27
  • 2015-10-09
  • 1970-01-01
  • 2023-03-10
  • 2013-11-10
  • 1970-01-01
相关资源
最近更新 更多