mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-11 17:50:58 +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
|
|
}
|
|
}
|