gpt4 book ai didi

visual-studio-code - VScode 更新绑定(bind)的 Sonarlint "connect mode"

转载 作者:行者123 更新时间:2023-12-03 14:57:27 27 4
gpt4 key购买 nike

我无法从 sonarqube 服务器下载“质量配置文件”。而且你也不是很明白,如果服务器发生变化,我如何更新配置文件。文件说:

To have rules, issues and exclusions synched. First configure the connection via user settings (SonarLint section), and then bind the project in workspace settings. If the server-side config changes, you can trigger a local update Update SonarLint binding to SonarQube/SonarCloud command on the command palette.


但我不知道,我必须使用什么命令来更新绑定(bind)。

最佳答案

这是我的工作区设置,

{
"sonarlint.connectedMode.project": {
"serverId": "BF41A1F2-AWjgtrls5CwHEOrWfhs8", // Connection defined in sonarlint.connectedMode.servers
"projectKey": "project" // Project key in SonarQube/SonarCloud
},
"sonarlint.connectedMode.servers": [
{
"serverId": "BF41A1F2-AWjgtrls5CwHEOrWfhs8", // Connection identifier
"serverUrl": "http://localhost:9000", // SonarQube/SonarCloud URL - https//sonarcloud.io for SonarCloud
"token": "4a53d5342382a9079369f0fb9e46bd14b2f479a4" // User token - generated in SonarQube/SonarCloud in My Account>Security
}
]
}

关于visual-studio-code - VScode 更新绑定(bind)的 Sonarlint "connect mode",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52889445/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com