From 9089d81e42980350c08c96e2241bafbdc82393b8 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 21 Oct 2024 14:07:57 +0800 Subject: [PATCH] Update JOJ3 Configuration For TAs --- JOJ3-Configuration-For-TAs.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/JOJ3-Configuration-For-TAs.md b/JOJ3-Configuration-For-TAs.md index 78e972e..02adfc9 100644 --- a/JOJ3-Configuration-For-TAs.md +++ b/JOJ3-Configuration-For-TAs.md @@ -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