lint

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalPath

func NormalPath(path string) string

func PathmodifierPath

func PathmodifierPath(path string) string

Types

type Config

type Config struct {
	Store            generator.Filesystem
	FilterFunctions  []string
	OnlyErrors       bool
	MaxMessages      int
	SkipFieldsRegexp []string
}

type Linter

type Linter struct {
	// contains filtered or unexported fields
}

func New

func New(c Config) (*Linter, error)

func (*Linter) Lint

func (l *Linter) Lint(ctx context.Context) (messages LinterMessages)

type LinterMessage

type LinterMessage struct {
	// contains filtered or unexported fields
}

func (LinterMessage) IsError

func (lm LinterMessage) IsError() bool

func (LinterMessage) Message

func (lm LinterMessage) Message(withCaller, withDescription bool) string

func (LinterMessage) Path

func (m LinterMessage) Path() string

func (LinterMessage) String

func (lm LinterMessage) String() string

func (LinterMessage) WithDescription

func (lm LinterMessage) WithDescription(desc string, arg ...interface{}) LinterMessage

type LinterMessages

type LinterMessages []LinterMessage

func (LinterMessages) Len

func (m LinterMessages) Len() int

LinterMessages implements sort.Interface

func (LinterMessages) Less

func (m LinterMessages) Less(i, j int) bool

func (LinterMessages) Swap

func (m LinterMessages) Swap(i, j int)

Jump to

Keyboard shortcuts

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