Help us shape the future of Go! Take the 2026 Go Developer Survey

app

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StageCompare  Stage  = "compare"
	StageAssemble Stage  = "assemble"
	StageSelect   Stage  = "select"
	StagePlan     Stage  = "plan"
	StageEvaluate Stage  = "evaluate"
	StageReport   Stage  = "report"
	StageWrite    Stage  = "write"
	StatusOK      Status = "ok"
	StatusError   Status = "error"
)

Variables

View Source
var ErrInvalidRun = errors.New("invalid lint run")
View Source
var ErrReportLimit = errors.New("lint report size limit exceeded")

Functions

This section is empty.

Types

type Comparer

type Comparer interface {
	Compare(context.Context, string, string) (git.Result, error)
	CompareUncommitted(context.Context) (git.Result, error)
}

type Limits

type Limits struct {
	Context        contextplan.Limits
	Concurrency    int
	Timeout        time.Duration
	MaxReportBytes int
}

type Linter

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

Linter is the pure application boundary; process configuration belongs to the CLI.

func NewLinter

func NewLinter(comparer Comparer, provider jev.Provider, pack rules.Pack) (*Linter, error)

func NewObservedLinter

func NewObservedLinter(comparer Comparer, provider jev.Provider, pack rules.Pack, observer Observer) (*Linter, error)

func (*Linter) Lint

func (l *Linter) Lint(parent context.Context, request Request) (report.Report, error)

type Observer

type Observer interface {
	Observe(Stage, Status, int, time.Duration)
}

type Request

type Request struct {
	Base         string
	Head         string
	Uncommitted  bool
	Model        string
	ProviderName string
	Include      []string
	Exclude      []string
	Limits       Limits
}

type Stage

type Stage string

Stage and Status are fixed observability dimensions. They never carry input.

type Status

type Status string

Jump to

Keyboard shortcuts

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