From 87c2bc38d047a33336a30761aa1a3d1fc5e0f2f6 Mon Sep 17 00:00:00 2001 From: zjc_he Date: Tue, 7 May 2024 14:52:12 +0800 Subject: [PATCH] fix(internal/parsers/clang_tidy/parser.go): Removing unused local json file --- internal/parsers/clang_tidy/parser.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/internal/parsers/clang_tidy/parser.go b/internal/parsers/clang_tidy/parser.go index bdf8f52..2a22154 100644 --- a/internal/parsers/clang_tidy/parser.go +++ b/internal/parsers/clang_tidy/parser.go @@ -1,8 +1,6 @@ package clang_tidy import ( - "encoding/json" - "os" "strings" "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" @@ -28,15 +26,6 @@ func Parse(executorResult stage.ExecutorResult, conf Conf) stage.ParserResult { messages := parse_lines(lines, conf) formatted_messages := format(messages) - // TODO: Handle the json file (parse into markdown and delete it?) - json_file, _ := os.Create("./clangtidy_result.json") - defer json_file.Close() - - encoder := json.NewEncoder(json_file) - encoder.SetEscapeHTML(false) - encoder.SetIndent("", " ") - _ = encoder.Encode(formatted_messages) - // TODO: Handle unexpected errors from executor // if executorResult.Status != stage.Status(envexec.StatusAccepted) { // return stage.ParserResult{