chore: remove nested fields

This commit is contained in:
张泊明518370910136 2025-09-27 01:19:56 -07:00
parent 45916f61d3
commit 3ccb9b4cf0
GPG Key ID: CA088E6D9284F870

120
conf.json
View File

@ -1,67 +1,65 @@
{ {
"stage": { "stages": [
"stages": [ {
{ "name": "cppcheck",
"name": "cppcheck", "executor": {
"executor": { "name": "sandbox",
"name": "sandbox", "with": {
"default": {
"args": [
"cppcheck",
"--template={\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}",
"--force",
"--enable=all",
"--quiet",
"."
],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"cpuLimit": 10000000000,
"memoryLimit": 419430400,
"procLimit": 50,
"copyInDir": ".",
"copyOut": [
"stdout"
],
"stdin": {
"content": ""
},
"stdout": {
"name": "stdout",
"max": 65536
},
"stderr": {
"name": "stderr",
"max": 65536
}
}
}
},
"parsers": [
{
"name": "cppcheck",
"with": { "with": {
"default": { "score": 100,
"args": [ "matches": [
"cppcheck", {
"--template={\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}", "keywords": [
"--force", "doubleFree"
"--enable=all", ],
"--quiet", "score": 5
"."
],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"cpuLimit": 10000000000,
"memoryLimit": 419430400,
"procLimit": 50,
"copyInDir": ".",
"copyOut": [
"stdout"
],
"stdin": {
"content": ""
}, },
"stdout": { {
"name": "stdout", "keywords": [
"max": 65536 "memleak"
}, ],
"stderr": { "score": 7
"name": "stderr",
"max": 65536
} }
} ]
} }
}, }
"parsers": [ ]
{ }
"name": "cppcheck", ]
"with": {
"score": 100,
"matches": [
{
"keywords": [
"doubleFree"
],
"score": 5
},
{
"keywords": [
"memleak"
],
"score": 7
}
]
}
}
]
}
]
}
} }