yttlint

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorCodeHelm = "HELM"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCode added in v0.2.0

type ErrorCode string

type Linter

type Linter struct {
	Pedantic bool
}

func (*Linter) Lint

func (l *Linter) Lint(data, filename string, autoImport bool) (errors []LinterError)

Lint applies linting to a given ytt template

type LinterError

type LinterError struct {
	Msg  string    `json:"msg"`
	Pos  string    `json:"pos"`
	Code ErrorCode `json:"code"`
}

Jump to

Keyboard shortcuts

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