运行 Visual Studio 上的 SonarQube 插件 GNU/Linux 上的代码
Run SonarQube plugin on Visual Studio Code on GNU/Linux
我在 运行 在 Visual Studio 代码上使用 SonarQube 插件和 SonarLint 时遇到了一些问题。
安装前一个或两个插件后,我尝试 运行(按照教程......)命令 SonarQube Inject: Create global config with credentials to servers
结果如下消息 command 'sonarqube-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。编辑器将显示要使用的选项。
我在 运行 在 Visual Studio 代码上使用 SonarQube 插件和 SonarLint 时遇到了一些问题。
安装前一个或两个插件后,我尝试 运行(按照教程......)命令 SonarQube Inject: Create global config with credentials to servers
结果如下消息 command 'sonarqube-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。编辑器将显示要使用的选项。