From d4eb6b9928b98d67bff7be81f4a9a277da276978 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Mon, 27 Jan 2025 20:54:44 -0500 Subject: [PATCH] chore: keyword conf --- conf.json | 8 +++++++- expected.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/conf.json b/conf.json index f2bf00f..75cd9f5 100644 --- a/conf.json +++ b/conf.json @@ -31,7 +31,13 @@ "name": "cpplint", "with": { "score": 0, - "comment": "check done" + "comment": "check done", + "matches": [ + { + "keywords": ["whitespace", "legal"], + "score": 5 + } + ] } } } diff --git a/expected.json b/expected.json index 4e4b92f..dd4d757 100644 --- a/expected.json +++ b/expected.json @@ -1 +1 @@ -[{"name":"cpplint","results":[{"score":-36,"comment":"### Test results summary\n\n1. whitespace: 14\n2. legal: 1\n"}],"force_quit":false}] +[{"name":"cpplint","results":[{"score":-75,"comment":"### Test results summary\n\n1. `whitespace`: 14 occurrence(s), -70 point(s)\n2. `legal`: 1 occurrence(s), -5 point(s)\n"}],"force_quit":false}]