replace parser with actions/workflow-parser
This commit is contained in:
15
vendor/github.com/actions/workflow-parser/parser/opts.go
generated
vendored
Normal file
15
vendor/github.com/actions/workflow-parser/parser/opts.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package parser
|
||||
|
||||
type OptionFunc func(*parseState)
|
||||
|
||||
func WithSuppressWarnings() OptionFunc {
|
||||
return func(ps *parseState) {
|
||||
ps.suppressSeverity = WARNING
|
||||
}
|
||||
}
|
||||
|
||||
func WithSuppressErrors() OptionFunc {
|
||||
return func(ps *parseState) {
|
||||
ps.suppressSeverity = ERROR
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user