From f92041c57719307b0e6d33e7f79cfd80158f1ab4 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Sun, 3 Nov 2024 20:36:57 -0500 Subject: [PATCH] feat: MaxMatchCount --- conf.json | 3 ++- expected.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf.json b/conf.json index f73640f..22de02f 100644 --- a/conf.json +++ b/conf.json @@ -41,7 +41,8 @@ }, { "keywords": ["[runtime/references]"], - "score": 2 + "score": 2, + "maxMatchCount": 3 } ] } diff --git a/expected.json b/expected.json index 8d0df59..8b92dc2 100644 --- a/expected.json +++ b/expected.json @@ -1 +1 @@ -[{"name":"keyword","results":[{"score":85,"comment":"1. `[runtime/references]`: 5 occurrence(s), -10 point(s)\n2. `[legal/copyright]`: 1 occurrence(s), -5 point(s)\n"}],"force_quit":false}] +[{"name":"keyword","results":[{"score":89,"comment":"1. `[runtime/references]`: 3 occurrence(s), -6 point(s)\n2. `[legal/copyright]`: 1 occurrence(s), -5 point(s)\n"}],"force_quit":false}]