package
2.13.0
Repository: https://github.com/elastic/package-spec.git
Documentation: pkg.go.dev

# Functions

LoadConfigFilter reads the config file and returns a ConfigFilter struct.
NewExcludeCheck creates a new ExcludeCheck processor.
NewFilter creates a new filter given a configuration.
NewStructuredError creates a generic validation error.
NewStructuredErrorf creates a generic validation error with unassigned code.

# Constants

Constants to be used for the structured errors.
Constants to be used for the structured errors.
Constants to be used for the structured errors.
Constants to be used for the structured errors.

# Structs

ConfigFilter represents the linter configuration file.
ExcludeCheck is a processor to filter errors according to their messages.
Filter represents the collection of processors to be applied over validation errors.
FilterResult represents the errors that have been processed and removed from the filter.
Processors represents the list of processors in the configuration file.
ProcessResult represents the errors that have been processed and removed.
StructuredError generic validation error.

# Interfaces

Processor is the interface for every processor.
ValidationError is the interface that every validation error must implement.
ValidationPathError is the interface that validation errors related to paths must implement.
ValidationSeverityError is the interface that validation errors related to severities must implement.

# Type aliases

ValidationErrors is an error that contains an iterable collection of validation error messages.