Update JOJ3 Configuration Schema
parent
2ee5e4f329
commit
33e3e204dc
|
@ -76,6 +76,7 @@ It contains the part of the configuration that will be used globally for all ass
|
|||
teaching_team = ["mac-wang", "jon-lee", "allen_wr"] # jaccounts
|
||||
|
||||
max_size = 5 # 5MB repo max size
|
||||
check_release = "True"
|
||||
release_tags = ["h1", "h2", "h3"] # list of valid release tags
|
||||
|
||||
[files]
|
||||
|
@ -166,17 +167,15 @@ Some parsers can also be further configured.
|
|||
<details><summary>Sample task.toml</summary>
|
||||
|
||||
```toml
|
||||
# general task configuration
|
||||
task="Homework 1 exercise 2" # task name
|
||||
task = "h1 ex2" # task name
|
||||
|
||||
release.deadline = 2024-10-12 23:59:00+08:00
|
||||
release.stages = ["compile"]
|
||||
|
||||
[compile]
|
||||
command = "cmake"
|
||||
files.import = [ "main.c", "task.h", "CMakelist.txt" ] # files to include with repo code when compiling
|
||||
command = "cmake . && make"
|
||||
files.import = ["main.c", "task.h", "CMakeLists.txt"]
|
||||
files.export = ["p1", "p1-msan"]
|
||||
# limit.cpu = 300 # allow 300s for complex/long compilation
|
||||
|
||||
# parsers
|
||||
result-status.comment = "Congratulations! Your code compiled successfully."
|
||||
|
@ -189,11 +188,19 @@ name = "File length check"
|
|||
command = "file-length" # command to run
|
||||
tests = ["max", "recommend"] # keywords caught by corresponding JOJ plugin
|
||||
weights = [50, 20] # weight of each keyword
|
||||
parsers
|
||||
parsers = []
|
||||
|
||||
[clangtidy]
|
||||
command = "clang-tidy-18 -header-filter=.* -quiet -load=/usr/local/lib/libcodequality.so -p build"
|
||||
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" ]
|
||||
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"
|
||||
]
|
||||
weights = [100, 100, 50, 10, 5, 5, 10, 5, 5, 8, 5, 5, 5, 5, 8]
|
||||
|
||||
[cppcheck]
|
||||
|
|
Loading…
Reference in New Issue
Block a user