fix(internal/parsers/clang_tidy/parser.go): Removing unused local json file
This commit is contained in:
parent
07ef611f95
commit
87c2bc38d0
|
@ -1,8 +1,6 @@
|
||||||
package clang_tidy
|
package clang_tidy
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"os"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage"
|
"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)
|
messages := parse_lines(lines, conf)
|
||||||
formatted_messages := format(messages)
|
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
|
// TODO: Handle unexpected errors from executor
|
||||||
// if executorResult.Status != stage.Status(envexec.StatusAccepted) {
|
// if executorResult.Status != stage.Status(envexec.StatusAccepted) {
|
||||||
// return stage.ParserResult{
|
// return stage.ParserResult{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user