constants

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package constants declares stickler's sentinel error values. The error mechanism (the matchable string type) lives in the shared gomatic/go-error library; these values are stickler's own.

Index

Constants

View Source
const (
	ErrBadListSetting   errs.Const = "list setting must be a sequence or an add/remove/replace mapping"
	ErrConfig           errs.Const = "cannot load stickler config"
	ErrExec             errs.Const = "command execution failed"
	ErrLintFailed       errs.Const = "lint failures found"
	ErrNoInstructions   errs.Const = "runner cannot explain itself"
	ErrNoRunners        errs.Const = "configuration selected no runners; a run that judges nothing cannot pass"
	ErrQualityReduction errs.Const = "this setting reduces what the gate demands, and the gate runs the full standard"
	ErrRunner           errs.Const = "lint runner failed"
	ErrRunnerFailed     errs.Const = "runner failed"
	ErrUnknownOutput    errs.Const = "unknown output format"
	ErrUnknownRunner    errs.Const = "unknown runner"
	// ErrSettingsUnreachable reports `analyzers:` settings that no selected
	// runner can receive. Every such setting is delivered to yze, so a
	// configuration that writes one while yze is not running has configured
	// nothing -- and being told nothing, the repository believes the opposite of
	// what is happening, which is the worst of the three available outcomes.
	ErrSettingsUnreachable errs.Const = "analyzers: settings cannot reach any selected runner; they are delivered to yze, which this configuration does not run"
	// ErrRunnerOverride reports a define: entry replacing a built-in runner, which
	// removes a whole tool from the gate rather than adding one.
	ErrRunnerOverride errs.Const = "define: may add a runner, never replace a built-in one"
)

Keep these constants sorted alphabetically.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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