69 lines
1.5 KiB
JSON
69 lines
1.5 KiB
JSON
{
|
|
"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
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|