chore: remove nested fields

This commit is contained in:
张泊明518370910136 2025-09-27 01:19:55 -07:00
parent d0f24b5453
commit 616100d169
GPG Key ID: CA088E6D9284F870

136
conf.json
View File

@ -1,76 +1,74 @@
{ {
"stage": { "stages": [
"stages": [ {
{ "name": "keyword",
"name": "keyword", "executor": {
"executor": { "name": "sandbox",
"name": "sandbox", "with": {
"default": {
"args": [
"bash",
"-c",
"clang-tidy-18 --header-filter=.* --quiet -checks=* src/*.cpp"
],
"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": { "with": {
"default": { "score": 1000,
"args": [ "files": [
"bash", "stdout"
"-c", ],
"clang-tidy-18 --header-filter=.* --quiet -checks=* src/*.cpp" "endOnMatch": true,
], "matches": [
"env": [ {
"PATH=/usr/bin:/bin:/usr/local/bin" "keywords": [
], "[cppcoreguidelines-avoid-non-const-global-variables]"
"cpuLimit": 10000000000, ],
"memoryLimit": 104857600, "score": 5
"procLimit": 50,
"copyInDir": ".",
"copyOut": [
"stdout",
"stderr"
],
"stdin": {
"content": ""
}, },
"stdout": { {
"name": "stdout", "keywords": [
"max": 65536 "[readability-identifier-length]",
"[misc-use-anonymous-namespace]"
],
"score": 2
}, },
"stderr": { {
"name": "stderr", "keywords": [
"max": 65536 "[llvmlibc-implementation-in-namespace]"
],
"score": 0
} }
} ]
} }
}, }
"parsers": [ ]
{ }
"name": "keyword", ]
"with": {
"score": 1000,
"files": [
"stdout"
],
"endOnMatch": true,
"matches": [
{
"keywords": [
"[cppcoreguidelines-avoid-non-const-global-variables]"
],
"score": 5
},
{
"keywords": [
"[readability-identifier-length]",
"[misc-use-anonymous-namespace]"
],
"score": 2
},
{
"keywords": [
"[llvmlibc-implementation-in-namespace]"
],
"score": 0
}
]
}
}
]
}
]
}
} }