feat(parser/dummy): support force quit
Some checks failed
build / build (push) Failing after 8s
build / trigger-build-image (push) Has been skipped
submodules sync / sync (push) Successful in 32s

This commit is contained in:
张泊明518370910136 2024-10-28 23:59:43 -04:00
parent 6cb6cb1f67
commit 08cd9d287b
GPG Key ID: D47306D7062CDA9D

View File

@ -5,8 +5,9 @@ import (
) )
type Conf struct { type Conf struct {
Score int Score int
Comment string Comment string
ForceQuit bool
} }
type Dummy struct{} type Dummy struct{}
@ -22,5 +23,5 @@ func (*Dummy) Run(results []stage.ExecutorResult, confAny any) (
for range results { for range results {
res = append(res, stage.ParserResult{Score: conf.Score, Comment: conf.Comment}) res = append(res, stage.ParserResult{Score: conf.Score, Comment: conf.Comment})
} }
return res, false, nil return res, conf.ForceQuit, nil
} }