From e00e6bd27536b1e6a860ba534848e87cea304a0c Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Wed, 23 Oct 2024 04:17:20 -0400 Subject: [PATCH] feat: comppatible for different cppcheck versions --- conf.json | 2 +- expected.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.json b/conf.json index ac8bc43..826476b 100644 --- a/conf.json +++ b/conf.json @@ -9,7 +9,7 @@ "args": [ "bash", "-c", - "cppcheck --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}' --force --enable=all --quiet src/*.cpp" + "cppcheck --suppress=checkersReport --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" diff --git a/expected.json b/expected.json index d2c39c8..827d1c1 100644 --- a/expected.json +++ b/expected.json @@ -1 +1 @@ -[{"name":"cppcheck","results":[{"score":95,"comment":"### Test results summary\n\n1. error: 1\n2. warning: 0\n3. portability: 0\n4. performance: 0\n5. style: 0\n6. information: 1\n7. debug: 0\n"}],"force_quit":false}] +[{"name":"cppcheck","results":[{"score":95,"comment":"### Test results summary\n\n1. error: 1\n2. warning: 0\n3. portability: 0\n4. performance: 0\n5. style: 0\n6. information: 0\n7. debug: 0\n"}],"force_quit":false}]