mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 03:26:30 +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
|
||
|
}
|
||
|
}
|