feat: use conf.json
This commit is contained in:
parent
40fe2dbef1
commit
578be035a0
68
conf.json
Normal file
68
conf.json
Normal file
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
"stages": [
|
||||
{
|
||||
"name": "cppcheck",
|
||||
"executor": {
|
||||
"name": "sandbox",
|
||||
"with": {
|
||||
"default": {
|
||||
"args": [
|
||||
"bash",
|
||||
"-c",
|
||||
"cppcheck --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}' --force --enable=all --quiet src/*.cpp"
|
||||
],
|
||||
"env": [
|
||||
"PATH=/usr/bin:/bin:/usr/local/bin"
|
||||
],
|
||||
"cpuLimit": 10000000000,
|
||||
"memoryLimit": 419430400,
|
||||
"procLimit": 50,
|
||||
"copyInCwd": true,
|
||||
"copyOut": [
|
||||
"stdout"
|
||||
],
|
||||
"stdin": {
|
||||
"content": ""
|
||||
},
|
||||
"stdout": {
|
||||
"name": "stdout",
|
||||
"max": 65536
|
||||
},
|
||||
"stderr": {
|
||||
"name": "stderr",
|
||||
"max": 65536
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parser": {
|
||||
"name": "cppcheck",
|
||||
"with": {
|
||||
"score": 100,
|
||||
"matches": [
|
||||
{
|
||||
"severity": [
|
||||
"error"
|
||||
],
|
||||
"score": 5
|
||||
},
|
||||
{
|
||||
"severity": [
|
||||
"warning"
|
||||
],
|
||||
"score": 2
|
||||
},
|
||||
{
|
||||
"severity": [
|
||||
"probability",
|
||||
"performance",
|
||||
"style"
|
||||
],
|
||||
"score": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
34
conf.toml
34
conf.toml
|
@ -1,34 +0,0 @@
|
|||
skipGitea = true
|
||||
[[stages]]
|
||||
name = "cppcheck"
|
||||
[stages.executor]
|
||||
name = "sandbox"
|
||||
[stages.executor.with.default]
|
||||
args = ["bash","-c","cppcheck --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}' --force --enable=all --quiet src/*.cpp"]
|
||||
env = ["PATH=/usr/bin:/bin:/usr/local/bin"]
|
||||
cpuLimit = 10_000_000_000
|
||||
memoryLimit = 419_430_400
|
||||
procLimit = 50
|
||||
copyInCwd = true
|
||||
copyOut = ["stdout"]
|
||||
[stages.executor.with.default.stdin]
|
||||
content = ""
|
||||
[stages.executor.with.default.stdout]
|
||||
name = "stdout"
|
||||
max = 65_536
|
||||
[stages.executor.with.default.stderr]
|
||||
name = "stderr"
|
||||
max = 65_536
|
||||
[stages.parser]
|
||||
name = "cppcheck"
|
||||
[stages.parser.with]
|
||||
score = 100
|
||||
[[stages.parser.with.matches]]
|
||||
severity = ["error"]
|
||||
score = 5
|
||||
[[stages.parser.with.matches]]
|
||||
severity = ["warning"]
|
||||
score = 2
|
||||
[[stages.parser.with.matches]]
|
||||
severity = ["probability", "performance", "style"]
|
||||
score = 1
|
Loading…
Reference in New Issue
Block a user