diff --git a/conf.json b/conf.json new file mode 100644 index 0000000..df478dc --- /dev/null +++ b/conf.json @@ -0,0 +1,62 @@ +{ + "stages": [ + { + "name": "keyword", + "executor": { + "name": "sandbox", + "with": { + "default": { + "args": [ + "bash", + "-c", + "cpplint src/*.cpp" + ], + "env": [ + "PATH=/usr/bin:/bin:/usr/local/bin" + ], + "cpuLimit": 10000000000, + "memoryLimit": 104857600, + "procLimit": 50, + "copyInCwd": true, + "copyOut": [ + "stdout", + "stderr" + ], + "stdin": { + "content": "" + }, + "stdout": { + "name": "stdout", + "max": 65536 + }, + "stderr": { + "name": "stderr", + "max": 65536 + } + } + } + }, + "parser": { + "name": "keyword", + "with": { + "fullScore": 100, + "minScore": 0, + "files": [ + "stderr" + ], + "endOnMatch": true, + "matches": [ + { + "keyword": "[legal/copyright]", + "score": 5 + }, + { + "keyword": "[runtime/references]", + "score": 2 + } + ] + } + } + } + ] +} diff --git a/conf.toml b/conf.toml deleted file mode 100644 index 11d4bfc..0000000 --- a/conf.toml +++ /dev/null @@ -1,34 +0,0 @@ -skipGitea = true -[[stages]] -name = "keyword" -[stages.executor] -name = "sandbox" -[stages.executor.with.default] -args = ["bash", "-c", "cpplint src/*.cpp"] -env = ["PATH=/usr/bin:/bin:/usr/local/bin"] -cpuLimit = 10_000_000_000 -memoryLimit = 104_857_600 -procLimit = 50 -copyInCwd = true -copyOut = ["stdout", "stderr"] -[stages.executor.with.default.stdin] -content = "" -[stages.executor.with.default.stdout] -name = "stdout" -max = 65_536 -[stages.executor.with.default.stderr] -name = "stderr" -max = 65_536 -[stages.parser] -name = "keyword" -[stages.parser.with] -fullScore = 100 -minScore = 0 -files = ["stderr"] -endOnMatch = true -[[stages.parser.with.matches]] -keyword = "[legal/copyright]" -score = 5 -[[stages.parser.with.matches]] -keyword = "[runtime/references]" -score = 2