feat: comppatible for different cppcheck versions

This commit is contained in:
张泊明518370910136 2024-10-23 04:17:20 -04:00
parent 97081f27ad
commit e00e6bd275
GPG Key ID: CA088E6D9284F870
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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}]