From 78dc81b864184974201eb045c54e15c6b160c856 Mon Sep 17 00:00:00 2001
From: Nuvole <jon-lee@sjtu.edu.cn>
Date: Wed, 23 Oct 2024 22:56:50 +0800
Subject: [PATCH] chore: trim old code

---
 joj3_config_generator/lib/task.py |  6 +++++-
 tests/convert/basic/task.json     | 13 ++++++++++++-
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/joj3_config_generator/lib/task.py b/joj3_config_generator/lib/task.py
index e8544c3..f42ac8b 100644
--- a/joj3_config_generator/lib/task.py
+++ b/joj3_config_generator/lib/task.py
@@ -255,7 +255,11 @@ def fix_diff(
 
 
 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/convert/basic/task.json b/tests/convert/basic/task.json
index dcf13ea..6dde2a2 100644
--- a/tests/convert/basic/task.json
+++ b/tests/convert/basic/task.json
@@ -775,7 +775,18 @@
                 "parsers": [
                     {
                         "name": "cpplint",
-                        "with": {}
+                        "with": {
+                            "keyword": [
+                                "runtime",
+                                "readability",
+                                "build"
+                            ],
+                            "weight": [
+                                10,
+                                20,
+                                15
+                            ]
+                        }
                     },
                     {
                         "name": "dummy",