From 9652ef9b78af143e678d396257a08742774ba48b Mon Sep 17 00:00:00 2001 From: Nuvole Date: Wed, 23 Oct 2024 22:56:50 +0800 Subject: [PATCH] chore: trim old code --- joj3_config_generator/lib/task.py | 6 +++++- tests/basic/task.json | 19 +++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/joj3_config_generator/lib/task.py b/joj3_config_generator/lib/task.py index a5b0d36..deb3c27 100644 --- a/joj3_config_generator/lib/task.py +++ b/joj3_config_generator/lib/task.py @@ -21,7 +21,11 @@ def fix_keyword(task_stage: TaskStage, conf_stage: ResultStage) -> ResultStage: def fix_comment(task_stage: TaskStage, conf_stage: ResultStage) -> ResultStage: - comment_parser = ["dummy", "result-status"] + comment_parser = [ + "dummy", + "result-status", + "cpplint", + ] # FIXME: determine where cpplint should be for parser in task_stage.parsers: if parser in comment_parser: comment_parser_ = next(p for p in conf_stage.parsers if p.name == parser) diff --git a/tests/basic/task.json b/tests/basic/task.json index 83c624a..a42375b 100644 --- a/tests/basic/task.json +++ b/tests/basic/task.json @@ -18,7 +18,7 @@ "//repo-health-checker", + "0x7ff2358271a0>/repo-health-checker", "-root=.", "-repoSize=50.5", "-meta=main.py", @@ -71,8 +71,8 @@ "cpuRateLimit": 0, "cpuSetLimit": "", "copyIn": { - "//tmp/repo-checker-04l9les6/repo-health-checker": { - "src": "//tmp/repo-checker-_34sofm5/repo-health-checker", + "//tmp/repo-checker-3qi07atp/repo-health-checker": { + "src": "//tmp/repo-checker-ebujap5a/repo-health-checker", "content": null, "fileId": null, "name": null, @@ -775,7 +775,18 @@ "parsers": [ { "name": "cpplint", - "with": {} + "with": { + "keyword": [ + "runtime", + "readability", + "build" + ], + "weight": [ + 10, + 20, + 15 + ] + } }, { "name": "dummy",