v3helm.sh/helm/v3/pkg/lint/support Index | Files

package support

import "helm.sh/helm/v3/pkg/lint/support"

Package support contains tools for linting charts.

Linting is the process of testing charts for errors or warnings regarding formatting, compilation, or standards compliance.

Index

Constants

const (
	// UnknownSev indicates that the severity of the error is unknown, and should not stop processing.
	UnknownSev = iota
	// InfoSev indicates information, for example missing values.yaml file
	InfoSev
	// WarningSev indicates that something does not meet code standards, but will likely function.
	WarningSev
	// ErrorSev indicates that something will not likely function.
	ErrorSev
)

Severity indicates the severity of a Message.

Types

type Linter

type Linter struct {
	Messages []Message
	// The highest severity of all the failing lint rules
	HighestSeverity int
	ChartDir        string
}

Linter encapsulates a linting run of a particular chart.

func (*Linter) RunLinterRule

func (l *Linter) RunLinterRule(severity int, path string, err error) bool

RunLinterRule returns true if the validation passed

type Message

type Message struct {
	// Severity is one of the *Sev constants
	Severity int
	Path     string
	Err      error
}

Message describes an error encountered while linting.

func NewMessage

func NewMessage(severity int, path string, err error) Message

NewMessage creates a new Message struct

func (Message) Error

func (m Message) Error() string

Source Files

doc.go message.go

Version
v3.17.3 (latest)
Published
Apr 9, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
1 month ago

Tools for package owners.