From b6fa85790fad4b884be6e8f6478886be3b643ce1 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Sun, 3 Nov 2024 16:51:03 -0500 Subject: [PATCH] feat: remove bash -c --- conf.json | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/conf.json b/conf.json index ac8bc43..d591a80 100644 --- a/conf.json +++ b/conf.json @@ -7,20 +7,19 @@ "with": { "default": { "args": [ - "bash", - "-c", - "cppcheck --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}' --force --enable=all --quiet src/*.cpp" - ], - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" + "cppcheck", + "--template={\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}", + "--force", + "--enable=all", + "--quiet", + "." ], + "env": ["PATH=/usr/bin:/bin:/usr/local/bin"], "cpuLimit": 10000000000, "memoryLimit": 419430400, "procLimit": 50, "copyInDir": ".", - "copyOut": [ - "stdout" - ], + "copyOut": ["stdout"], "stdin": { "content": "" }, @@ -41,29 +40,19 @@ "score": 100, "matches": [ { - "severity": [ - "error" - ], + "severity": ["error"], "score": 5 }, { - "severity": [ - "warning" - ], + "severity": ["warning"], "score": 2 }, { - "severity": [ - "portability", - "performance", - "style" - ], + "severity": ["portability", "performance", "style"], "score": 1 }, { - "severity": [ - "debug" - ], + "severity": ["debug"], "score": 0 } ]