Update JOJ3 Configuration For TAs

manuel 2024-10-21 14:07:57 +08:00
parent 4637ab7e5a
commit 9089d81e42

@ -253,7 +253,7 @@ task="Homework 1 exercise 2" # task name
release.deadline = 2024-10-12 23:59:00+08:00
release.stages = [ "compile" ]
[compile]
[[stages]]
name = "Compilation"
command = "make.sh" # eg. script running cmake commands
files.import = [ "tools/make.sh", "src/main.c", "src/task.h", "srcCMakelist.txt" ]
@ -270,7 +270,7 @@ result-detail.stderr = true
result-detail.time = false
result-detail.mem = false
[filelength]
[[stages]]
name = "File length check"
command = "./file-length 500 400 *.c *.h" # command to run
files.import = [ "tools/file-length" ]
@ -283,7 +283,7 @@ result-detail.stderr = true
result-detail.time = false
result-detail.mem = false
[clangtidy]
[[stages]]
name = "Clang-tidy checks"
command = "run-clang-tidy-18 -header-filter=.* -quiet -load=/usr/local/lib/libcodequality.so -p build"
limit.stdout = 65
@ -297,7 +297,7 @@ result-detail.stdout = true
result-detail.time = false
result-detail.mem = false
[cppcheck]
[[stages]]
name = "Cppcheck check"
command = "cppcheck --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}' --force --enable=all --quiet ./"
limit.stderr = 65
@ -311,7 +311,7 @@ result-detail.stderr = true
result-detail.time = false
result-detail.mem = false
[cpplint]
[[stages]]
name = "Cpplint check"
command = "cpplint --linelength=120 --filter=-legal,-readability/casting,-whitespace,-runtime/printf,-runtime/threadsafe_fn,-readability/todo,-build/include_subdir,-build/header_guard --recursive --exclude=build ."
limit.stdout = 65