mirror of
https://gitea.com/gitea/act_runner
synced 2026-05-06 01:37:57 +02:00
16 lines
254 B
Go
16 lines
254 B
Go
package parser
|
|
|
|
type OptionFunc func(*Parser)
|
|
|
|
func WithSuppressWarnings() OptionFunc {
|
|
return func(ps *Parser) {
|
|
ps.suppressSeverity = WARNING
|
|
}
|
|
}
|
|
|
|
func WithSuppressErrors() OptionFunc {
|
|
return func(ps *Parser) {
|
|
ps.suppressSeverity = ERROR
|
|
}
|
|
}
|