From 08cd9d287b0c56e71cef4474612a140ec9c8bc4f Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Mon, 28 Oct 2024 23:59:43 -0400 Subject: [PATCH] feat(parser/dummy): support force quit --- internal/parser/dummy/parser.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/parser/dummy/parser.go b/internal/parser/dummy/parser.go index 5992f19..86cc258 100644 --- a/internal/parser/dummy/parser.go +++ b/internal/parser/dummy/parser.go @@ -5,8 +5,9 @@ import ( ) type Conf struct { - Score int - Comment string + Score int + Comment string + ForceQuit bool } type Dummy struct{} @@ -22,5 +23,5 @@ func (*Dummy) Run(results []stage.ExecutorResult, confAny any) ( for range results { res = append(res, stage.ParserResult{Score: conf.Score, Comment: conf.Comment}) } - return res, false, nil + return res, conf.ForceQuit, nil }