mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-02 14:46:31 +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
|
||
|
}
|
||
|
}
|