SonarLint vscode relative paths

Thank you for the sonarlint plugin for vscode!

Would you mind supporting paths relative to the vscode workspace?

So I can enter:

"sonarlint.pathToCompileCommands": "build/compile_commands.json"

Instead of

"sonarlint.pathToCompileCommands": "/home/tim/path/to/ws/build/compile_commands.json"

This way we can use the same settings for mutltiple users and multiple workspaces. Probably helps with settings-synchronisation as well.

Alternative: Support a variable like this:

"sonarlint.pathToCompileCommands": "${workspaceRoot}/build/compile_commands.json"

Hello Tim,

You might want to look at this other thread: How to set a relative path in vscode?

Thanks for raising this :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.