mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-10-10 19:32:04 +00:00
15 lines
254 B
Go
15 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
|
|
}
|
|
}
|