woodpecker/pipeline/frontend/yaml/linter/option.go

12 lines
239 B
Go
Raw Normal View History

2017-03-05 07:56:08 +00:00
package linter
// Option configures a linting option.
type Option func(*Linter)
// WithTrusted adds the trusted option to the linter.
func WithTrusted(trusted bool) Option {
return func(linter *Linter) {
linter.trusted = trusted
}
}