在GNU/Linux上的Visual Studio代码上运行SonarQube插件
我在Visual Studio代码上运行SonarQube插件和SonarLint时遇到一些问题。在GNU/Linux上的Visual Studio代码上运行SonarQube插件,sonarqube,visual-studio-code,sonarlint,Sonarqube,Visual Studio Code,Sonarlint,我在Visual Studio代码上运行SonarQube插件和SonarLint时遇到一些问题。 安装前一个或两个插件后,我尝试运行(按照教程…)命令sonaqube Inject:Create global config with credentials to server,最后出现以下消息command'sonaqube Inject.analyzeProject'not found问题来自插件二进制文件在默认情况下不可执行(至少在我的Ubuntu 16.04/VSCode 1.14上)。
安装前一个或两个插件后,我尝试运行(按照教程…)命令
sonaqube Inject:Create global config with credentials to server
,最后出现以下消息command'sonaqube Inject.analyzeProject'not found
问题来自插件二进制文件在默认情况下不可执行(至少在我的Ubuntu 16.04/VSCode 1.14上)。
我只需要使其可执行:
cd ~/.vscode/extensions/silverbulleters.sonarqube-inject-1.3.0/tools/sonarlint-cli/bin/
chmod u+x sonarlint
然后,重新启动VSCode并运行命令
SonarQube Inject:Create global config with credentials to servers
,然后设置服务器。在windows上键入:Ctrl-Shift-p,然后写入Sonar。编辑器将显示要使用的选项
我测试了Nikita Grizlov的新开发,他在我提交本期后制作了一些,新版本(在他将其发布到市场之前)运行良好并修复了此问题。有关如何从Windows运行该命令的任何信息?未识别
sonaqube-Inject:Analyze-current-project
:sonaqube:command-not-found