linter

package
v0.15.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Linter

type Linter struct {
	// contains filtered or unexported fields
}

A Linter lints a pipeline configuration.

func New

func New(opts ...Option) *Linter

New creates a new Linter with options.

func (*Linter) Lint

func (l *Linter) Lint(c *yaml.Config) error

Lint lints the configuration.

type Option

type Option func(*Linter)

Option configures a linting option.

func WithTrusted

func WithTrusted(trusted bool) Option

WithTrusted adds the trusted option to the linter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL