- Operating system: Ubuntu 20.04
- IDE name and flavor/env: VSCode v1.67.0
- SonarLint plugin version: v3.4.1
- Is connected mode used: Yes
- Connected to SonarCloud or SonarQube (and which version): SonarQube Version 8.9.7 (build 52159)
We are evaluating SonarLint in our team and appreciate the tool a lot. But currently we have doubts if we well understand the way how to configure especially the connected mode for VSCode.
It would be quite desirable to configure the project (workspace) related settings all together in the “Workspace’s” settings.json:
- projectKey (ok)
- path to compile_commands.json (will hopefully come soon with How to set a relative path in vscode?)
- the SonarQube server + token (seems not possible?)
We didn’t manage to set the SQ server parameters in the “Workspace” settings.json file, the server can only be found if the parameters are set in the local “User” settings.json file. Then it’s not possible to store an “out of the box” working environment in a project repository, developers who only work occasionally on the project always have to manually edit their local VSCode “User” settings.json. At the moment it’s even worse as in case of working remotely on VSCode the path to the compile_commands.json has to be specified in the “Remote” settings.json file, otherwise it doesn’t work. In sum four config parameters are spread over three config files which looks strange.
Thank you for support,
Hubert