plugin

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error added in v1.8.0

type Error struct {
	Severity ErrorSeverity
	Message  string
}

type ErrorSeverity added in v1.8.0

type ErrorSeverity int
const (
	ERROR ErrorSeverity = iota + 1
	WARNING
	INFO
)

type LinterRequest added in v1.8.0

type LinterRequest[T LintStatement] struct {
	Statement T
	Arguments []string
}

func ReadLinterRequest added in v1.8.0

func ReadLinterRequest[T LintStatement](r io.Reader) (*LinterRequest[T], error)

type LinterRequestError added in v1.8.0

type LinterRequestError struct {
	Message string
}

func (*LinterRequestError) Error added in v1.8.0

func (e *LinterRequestError) Error() string

type LinterResponse added in v1.8.0

type LinterResponse struct {
	Errors []*Error `json:"errors"`
}

func (*LinterResponse) Error added in v1.8.0

func (r *LinterResponse) Error(message string)

func (*LinterResponse) Info added in v1.8.0

func (r *LinterResponse) Info(message string)

func (*LinterResponse) Warning added in v1.8.0

func (r *LinterResponse) Warning(message string)

func (*LinterResponse) Write added in v1.8.0

func (r *LinterResponse) Write(w io.Writer) error

Jump to

Keyboard shortcuts

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