36 lines
1.3 KiB
TOML
36 lines
1.3 KiB
TOML
# general task configuration
|
|
task.name = "hw7 ex2" # task name
|
|
task.type = "homework/h7/e2" # remove this task type later
|
|
|
|
release.deadline = 2024-12-30 23:59:59+08:00
|
|
release.begin_time = 2024-12-29 23:59:59+08:00
|
|
|
|
[[stages]]
|
|
name = "Compilation"
|
|
command = "./tools/compile" # eg. script running cmake commands
|
|
files.import = [ "tools/compile" ]
|
|
files.export = [ "h7/build/ex2", "h7/build/ex2-asan", "h7/build/ex2-ubsan", "h7/build/ex2-msan", "h7/build/compile_commands.json" ]
|
|
score = 1
|
|
|
|
# compile parsers
|
|
parsers = [ "result-detail", "result-status" ]
|
|
result-status.comment = "Congratulations! Your code compiled successfully."
|
|
result-detail.exitstatus = true
|
|
result-detail.stderr = true
|
|
result-detail.time = false
|
|
result-detail.mem = false
|
|
result-status.forcequit = true
|
|
|
|
[[stages]]
|
|
name = "[cq] Cppcheck"
|
|
command = "cppcheck --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}' --force --enable=all --suppress=missingIncludeSystem --quiet h7/ex2.cpp"
|
|
limit.stderr = 65
|
|
|
|
parsers = [ "cppcheck", "result-detail" ]
|
|
cppcheck.keyword = ["error", "warning", "portability", "performance", "style"]
|
|
cppcheck.weight = [15, 5, 5, 5, 5]
|
|
result-detail.exitstatus = true
|
|
result-detail.stderr = true
|
|
result-detail.time = false
|
|
result-detail.mem = false
|