You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feature #45/ dynamic argument flags
* wip working dynamic args
* working
* updated readme
* small readme update
* removed specifying language to run script with
* made script command parsing a bit more general + updated readme
* removed console log
* reworked to make command running more generic
* removed reference to removed function
* updated readme to be a bit clearer
* clarified some comments
* removed whitespace
* rerun script for every analysis
-**Diagnostic cleanup**: When you close a file, its diagnostics are automatically cleared.
12
11
-**Project file support**: You can feed your project file to cppcheck through the `--project` flag in the `cppcheck-official.arguments` field in the extension settings.
13
12
-**Warning notes**: Display notes for warnings when those are available
14
-
13
+
-**Dynamic config**: The extension supports running a script to generate arguments to pass to cppcheck. This can be done by including the command in the argument field wrapped with \${}, e.g. `--suppress=memleak:src/file1.cpp ${bash path/to/script.sh}`. The script is expected to output the argument(s) wrapped with \${}. If the script e.g. creates a project file it should print out as `${--project=path/to/projectfile.json}`. This output will be spliced into the argument string as such: `--suppress=memleak:src/file1.cpp --project=path/to/projectfile.json`.
15
14
## Requirements
16
15
17
-
**Cppcheck** must be installed on your system.
16
+
**Cppcheck** must be installed on your system.
18
17
- By default, this extension looks for `cppcheck` on the system PATH.
19
18
- Alternatively, specify a custom executable path using the `cppcheck-official.path` setting.
0 commit comments