JOJ3/internal/parser/elf/meta.go
张泊明518370910136 f7bf12dc57
All checks were successful
submodules sync / sync (push) Successful in 1m15s
build / build (push) Successful in 3m34s
build / trigger-build-image (push) Successful in 13s
fix(parser): add elf to all.go
2025-06-17 02:53:12 -04:00

27 lines
536 B
Go

// Package elf parses output of the elf static analysis tool to
// assign scores based on detected code issues.
package elf
import "github.com/joint-online-judge/JOJ3/internal/stage"
var name = "elf"
type Match struct {
Keywords []string
Score int
}
type Conf struct {
Score int
Matches []Match
Stdout string `default:"stdout"`
Stderr string `default:"stderr"`
ForceQuitOnDeduct bool `default:"false"`
}
type Elf struct{}
func init() {
stage.RegisterParser(name, &Elf{})
}