1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-07-12 22:21:40 +02:00
Files
woodpecker/pipeline/frontend/yaml/linter/option.go

12 lines
239 B
Go
Raw Normal View History

2017-03-05 18:56:08 +11: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
}
}