Revert "Update JOJ3 Configuration Schema"

This reverts commit 33e3e204dce5431e9b1570498ba1cd1cc3ef31a9.
李衍志523370910113 2024-10-16 22:57:04 +08:00
parent 4ba91aa6a5
commit 0e78f94858

@ -76,7 +76,6 @@ It contains the part of the configuration that will be used globally for all ass
teaching_team = ["mac-wang", "jon-lee", "allen_wr"] # jaccounts teaching_team = ["mac-wang", "jon-lee", "allen_wr"] # jaccounts
max_size = 5 # 5MB repo max size max_size = 5 # 5MB repo max size
check_release = "True"
release_tags = ["h1", "h2", "h3"] # list of valid release tags release_tags = ["h1", "h2", "h3"] # list of valid release tags
[files] [files]
@ -167,15 +166,17 @@ Some parsers can also be further configured.
<details><summary>Sample task.toml</summary> <details><summary>Sample task.toml</summary>
```toml ```toml
task = "h1 ex2" # task name # general task configuration
task="Homework 1 exercise 2" # task name
release.deadline = 2024-10-12 23:59:00+08:00 release.deadline = 2024-10-12 23:59:00+08:00
release.stages = [ "compile" ] release.stages = [ "compile" ]
[compile] [compile]
command = "cmake . && make" command = "cmake"
files.import = ["main.c", "task.h", "CMakeLists.txt"] files.import = [ "main.c", "task.h", "CMakelist.txt" ] # files to include with repo code when compiling
files.export = [ "p1", "p1-msan" ] files.export = [ "p1", "p1-msan" ]
# limit.cpu = 300 # allow 300s for complex/long compilation
# parsers # parsers
result-status.comment = "Congratulations! Your code compiled successfully." result-status.comment = "Congratulations! Your code compiled successfully."
@ -188,19 +189,11 @@ name = "File length check"
command = "file-length" # command to run command = "file-length" # command to run
tests = [ "max", "recommend"] # keywords caught by corresponding JOJ plugin tests = [ "max", "recommend"] # keywords caught by corresponding JOJ plugin
weights = [ 50, 20 ] # weight of each keyword weights = [ 50, 20 ] # weight of each keyword
parsers = [] parsers
[clangtidy] [clangtidy]
command = "clang-tidy-18 -header-filter=.* -quiet -load=/usr/local/lib/libcodequality.so -p build" command = "clang-tidy-18 -header-filter=.* -quiet -load=/usr/local/lib/libcodequality.so -p build"
tests = [ tests = [ "codequality-no-global-variables", "codequality-no-header-guard", "readability-function-size", "readability-duplicate-include", "readability-identifier-naming", "readability-redundant", "readability-misleading-indentation", "readability-misplaced-array-index", "cppcoreguidelines-init-variables", "bugprone-suspicious-string-compare", "google-global-names-in-headers", "clang-diagnostic", "clang-analyzer", "misc performance" ]
"codequality-no-global-variables", "codequality-no-header-guard",
"readability-function-size", "readability-duplicate-include",
"readability-identifier-naming", "readability-redundant",
"readability-misleading-indentation", "readability-misplaced-array-index",
"cppcoreguidelines-init-variables", "bugprone-suspicious-string-compare",
"google-global-names-in-headers", "clang-diagnostic", "clang-analyzer",
"misc performance"
]
weights = [100, 100, 50, 10, 5, 5, 10, 5, 5, 8, 5, 5, 5, 5, 8] weights = [100, 100, 50, 10, 5, 5, 10, 5, 5, 8, 5, 5, 5, 5, 8]
[cppcheck] [cppcheck]