lint

package
v0.123.11 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatResults

func FormatResults(results []LintResult, format string) string

FormatResults formats lint results for output

func HasErrors

func HasErrors(results []LintResult) bool

HasErrors returns true if any of the results contain errors

Types

type LintError

type LintError struct {
	Line    int
	Column  int
	Message string
	Field   string
}

type LintOptions

type LintOptions struct {
	FilePaths   []string
	Fix         bool
	Format      string   // "text" or "json"
	ValuesFiles []string // Path to YAML files with template values (for v1beta3)
	SetValues   []string // Template values from command line (for v1beta3)
}

type LintResult

type LintResult struct {
	FilePath string
	Errors   []LintError
	Warnings []LintWarning
}

func LintFiles

func LintFiles(opts LintOptions) ([]LintResult, error)

LintFiles validates troubleshoot specs for syntax and structural errors

type LintWarning

type LintWarning struct {
	Line    int
	Column  int
	Message string
	Field   string
}

Jump to

Keyboard shortcuts

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