【问题标题】:VSCode SonarQube support for Visual Studio Code Error 400VSCode SonarQube 对 Visual Studio 代码错误 400 的支持
【发布时间】:2020-01-06 11:11:37
【问题描述】:

我在我的 VSCode 上使用 SonarQube 对 Visual Studio Code 的支持来连接 SonarQube 服务器。

这是我的全局配置 global.json

{
    "$schema": "https://raw.githubusercontent.com/silverbulleters/sonarqube-inject-vsc/master/schemas/global.json",
    "servers": [
        {
            "id": "localhost",
            "url": "http://localhost:9000/",
            "token": "0922636ce9de8248816fc2f8a89369a56788a64e"
        }
    ]
}

这是我的 sonarlint.json

{
    "$schema": "https://raw.githubusercontent.com/silverbulleters/sonarqube-inject-vsc/master/schemas/sonarlint.json",
    "serverId": "localhost",
    "projectKey": "guru.springframework:springmvc"
}

这是我的错误:

INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 438419:07:17.704s
INFO: Final Memory: 5M/20M
INFO: ------------------------------------------------------------------------
ERROR: Error executing SonarLint
ERROR: Error 400 on http://localhost:9000/api/components/tree.protobuf?qualifiers=BRC&baseComponentKey=guru.springframework%3Aspringmvc&ps=500&p=1: The 'component' parameter is missing
ERROR: 
ERROR: To see the full stack trace of the errors, re-run SonarLint with the -e switch.
ERROR: Re-run SonarLint using the -X switch to enable full debug logging.

任何人都可以帮助如何解决这个问题? 任何帮助都将不胜感激。

【问题讨论】:

    标签: java spring-boot visual-studio-code sonarqube


    【解决方案1】:

    刚刚得到答案,问题是我使用的VScode插件不支持Sonarqube 8。

    降级到版本 7 解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2016-08-19
      • 2011-02-16
      • 2019-01-16
      • 2011-12-14
      • 2021-02-06
      • 1970-01-01
      • 1970-01-01
      • 2019-12-02
      • 1970-01-01
      相关资源
      最近更新 更多