mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +00:00
12 lines
239 B
Go
12 lines
239 B
Go
|
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
|
||
|
}
|
||
|
}
|