Hi,
I'm trying to use the extension (extension v1.0.4 in VSC v1.118.1), but I have some difficulties when adding extra arguments for cppcheck.
I want the pass an add-on argument, but the normal variable substitution in the workspace file isn't working. It does work when I use an absolute path.
"cppcheck-official.enable": true,
"cppcheck-official.minSeverity": "info",
//"cppcheck-official.arguments": "--addon=C:/Projects/Example_CMake/Core/.vscode/custom_rules.json",
"cppcheck-official.arguments": "--addon=${workspaceFolder}/.vscode/custom_rules.json",
It seems that this is related to
|
var args = config.get<string>("cppcheck-official.arguments", ""); |
The ${xxx} syntax seems to be used for running commands instead of the normal VSC variable substitution.
Hi,
I'm trying to use the extension (extension v1.0.4 in VSC v1.118.1), but I have some difficulties when adding extra arguments for cppcheck.
I want the pass an add-on argument, but the normal variable substitution in the workspace file isn't working. It does work when I use an absolute path.
It seems that this is related to
vscode-cppcheck-official/src/extension.ts
Line 93 in a146fc0
The ${xxx} syntax seems to be used for running commands instead of the normal VSC variable substitution.