magecheckfix

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetAll      = "all"
	TargetMod      = "mod"
	TargetLint     = "lint"
	TargetStatic   = "static"
	TargetLicenses = "licenses"
	TargetPython   = "python"
)

Meta targets for the checks and fixes.

Variables

View Source
var (
	ErrCheck         = errors.New("check failed")
	ErrFix           = errors.New("fix failed")
	ErrLint          = errors.New("lint failed")
	ErrToolPath      = errors.New("path not set for tool")
	ErrRuffNotFound  = errors.New("ruff not found on PATH")
	ErrPyrightNotFnd = errors.New("pyright not found on PATH")
	ErrTypeCheck     = errors.New("type check failed")
)

Functions

func Check

func Check(target string) error

Check one of: [all, mod, lint, static, licenses, python]. BASH-COMPLETION: This is scanned by the bash completion script, keep it in sync with the script.

func Fix

func Fix(target string) error

Fix one of: [all, mod, lint, python]. BASH-COMPLETION: This is scanned by the bash completion script, keep it in sync with the script.

Types

This section is empty.

Jump to

Keyboard shortcuts

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