1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-04-23 11:07:35 +02:00

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
}
}