mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 08:23:48 +02:00
e34daae0cf
* Refactor: move cncd/pipeline/ to pipeline/ * Refactor: move pipeline/pipeline/ to pipeline/
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
|
|
}
|
|
}
|