From 9b1ed9186bdb80299304de26568920c19df8ca06 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Sat, 27 Sep 2025 01:19:55 -0700 Subject: [PATCH] chore: remove nested fields --- conf.json | 126 +++++++++++++++++++++++++++--------------------------- 1 file changed, 62 insertions(+), 64 deletions(-) diff --git a/conf.json b/conf.json index f84b692..875796d 100644 --- a/conf.json +++ b/conf.json @@ -1,70 +1,68 @@ { - "stage": { - "stages": [ - { - "name": "keyword", - "executor": { - "name": "sandbox", + "stages": [ + { + "name": "keyword", + "executor": { + "name": "sandbox", + "with": { + "default": { + "args": [ + "cpplint", + "--recursive", + "." + ], + "env": [ + "PATH=/usr/bin:/bin:/usr/local/bin" + ], + "cpuLimit": 10000000000, + "memoryLimit": 104857600, + "procLimit": 50, + "copyInDir": ".", + "copyOut": [ + "stdout", + "stderr" + ], + "stdin": { + "content": "" + }, + "stdout": { + "name": "stdout", + "max": 65536 + }, + "stderr": { + "name": "stderr", + "max": 65536 + } + } + } + }, + "parsers": [ + { + "name": "keyword", "with": { - "default": { - "args": [ - "cpplint", - "--recursive", - "." - ], - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "cpuLimit": 10000000000, - "memoryLimit": 104857600, - "procLimit": 50, - "copyInDir": ".", - "copyOut": [ - "stdout", - "stderr" - ], - "stdin": { - "content": "" + "score": 100, + "files": [ + "stderr" + ], + "endOnMatch": true, + "matches": [ + { + "keywords": [ + "[legal/copyright]" + ], + "score": 5 }, - "stdout": { - "name": "stdout", - "max": 65536 - }, - "stderr": { - "name": "stderr", - "max": 65536 + { + "keywords": [ + "[runtime/references]" + ], + "score": 2, + "maxMatchCount": 3 } - } + ] } - }, - "parsers": [ - { - "name": "keyword", - "with": { - "score": 100, - "files": [ - "stderr" - ], - "endOnMatch": true, - "matches": [ - { - "keywords": [ - "[legal/copyright]" - ], - "score": 5 - }, - { - "keywords": [ - "[runtime/references]" - ], - "score": 2, - "maxMatchCount": 3 - } - ] - } - } - ] - } - ] - } + } + ] + } + ] } \ No newline at end of file