linter

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 6 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(configs []*WorkflowConfig) 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.

type WorkflowConfig

type WorkflowConfig struct {
	// File is the path to the configuration file.
	File string

	// RawConfig is the raw configuration.
	RawConfig string

	// Config is the parsed configuration.
	Workflow *types.Workflow
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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