spectral

package
v4.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spectral

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

Spectral runs spectral on collections of files with a set of rules.

func New

New returns a new Spectral instance.

func (*Spectral) Match

func (s *Spectral) Match(rcConfig *config.ResourceSet) ([]string, error)

Match implements linter.Linter.

func (*Spectral) Run

func (l *Spectral) Run(ctx context.Context, _ string, paths ...string) error

Run runs spectral on the given paths. Linting output is written to standard output by spectral. Returns an error when lint fails configured rules.

func (*Spectral) WithOverride

func (s *Spectral) WithOverride(ctx context.Context, override *config.Linter) (linter.Linter, error)

WithOverride implements linter.Linter.

Jump to

Keyboard shortcuts

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