refactor(parser/keyword): rename EndOnMatch -> ForceQuitOnMatch
All checks were successful
build / build (push) Successful in 1m3s
build / trigger-build-image (push) Successful in 7s

This commit is contained in:
张泊明518370910136 2024-10-12 23:46:31 -04:00
parent cdab5ab4c8
commit 303e742d90
GPG Key ID: D47306D7062CDA9D

View File

@ -16,7 +16,7 @@ type Conf struct {
FullScore int
MinScore int
Files []string
EndOnMatch bool
ForceQuitOnMatch bool
Matches []Match
}
@ -58,7 +58,7 @@ func (*Keyword) Run(results []stage.ExecutorResult, confAny any) (
forceQuit := false
for _, result := range results {
tmp, matched := Parse(result, *conf)
if matched && conf.EndOnMatch {
if matched && conf.ForceQuitOnMatch {
forceQuit = true
}
res = append(res, tmp)