feat: remove bash -c

This commit is contained in:
张泊明518370910136 2024-11-03 16:51:03 -05:00
parent 8489ad8d86
commit b6fa85790f
GPG Key ID: CA088E6D9284F870

View File

@ -7,20 +7,19 @@
"with": { "with": {
"default": { "default": {
"args": [ "args": [
"bash", "cppcheck",
"-c", "--template={\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}",
"cppcheck --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}' --force --enable=all --quiet src/*.cpp" "--force",
], "--enable=all",
"env": [ "--quiet",
"PATH=/usr/bin:/bin:/usr/local/bin" "."
], ],
"env": ["PATH=/usr/bin:/bin:/usr/local/bin"],
"cpuLimit": 10000000000, "cpuLimit": 10000000000,
"memoryLimit": 419430400, "memoryLimit": 419430400,
"procLimit": 50, "procLimit": 50,
"copyInDir": ".", "copyInDir": ".",
"copyOut": [ "copyOut": ["stdout"],
"stdout"
],
"stdin": { "stdin": {
"content": "" "content": ""
}, },
@ -41,29 +40,19 @@
"score": 100, "score": 100,
"matches": [ "matches": [
{ {
"severity": [ "severity": ["error"],
"error"
],
"score": 5 "score": 5
}, },
{ {
"severity": [ "severity": ["warning"],
"warning"
],
"score": 2 "score": 2
}, },
{ {
"severity": [ "severity": ["portability", "performance", "style"],
"portability",
"performance",
"style"
],
"score": 1 "score": 1
}, },
{ {
"severity": [ "severity": ["debug"],
"debug"
],
"score": 0 "score": 0
} }
] ]