Documentation
¶
Overview ¶
Package validation holds the generic bundle-linting mechanism behind `lore validate`. Core owns scanning and diagnostics; plugins contribute the policy through Validator functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDiagnostic ¶
func FormatDiagnostic(d Diagnostic) string
Types ¶
type Diagnostic ¶
type Diagnostic struct {
Path string
Line int
Column int
Severity Severity
Rule string
Message string
}
func Scan ¶
func Scan(fsys vfs.FileSystem, root string, validators ...Validator) ([]Diagnostic, error)
type Validator ¶
type Validator func(Bundle) []Diagnostic
Click to show internal directories.
Click to hide internal directories.