diff --git a/conf.json b/conf.json index d591a80..23463c3 100644 --- a/conf.json +++ b/conf.json @@ -40,20 +40,12 @@ "score": 100, "matches": [ { - "severity": ["error"], + "keywords": ["doubleFree"], "score": 5 }, { - "severity": ["warning"], - "score": 2 - }, - { - "severity": ["portability", "performance", "style"], - "score": 1 - }, - { - "severity": ["debug"], - "score": 0 + "keywords": ["memleak"], + "score": 7 } ] } diff --git a/expected.json b/expected.json index 444313f..21fec2e 100644 --- a/expected.json +++ b/expected.json @@ -1 +1 @@ -[{"name":"cppcheck","results":[{"score":86,"comment":"### Test results summary\n\n1. error: 2\n2. warning: 0\n3. portability: 0\n4. performance: 0\n5. style: 4\n6. information: 0\n7. debug: 0\n"}],"force_quit":false}] +[{"name":"cppcheck","results":[{"score":88,"comment":"### Test results summary\n\n1. `memleak`: 1 occurrence(s), -7 point(s)\n2. `doubleFree`: 1 occurrence(s), -5 point(s)\n"}],"force_quit":false}]