config

package
v0.1.66 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorReset  = "\033[0m"
	ColorRed    = "\033[31m"
	ColorYellow = "\033[33m"
	ColorCyan   = "\033[36m"
	ColorBold   = "\033[1m"
)

Default colors

View Source
	"\033[38;5;51m███████╗███████╗██╗  ██╗███████╗██╗     ██╗      ██████╗██╗  ██╗███████╗ ██████╗██╗  ██╗\033[0m\n" +
	"\033[38;5;45m╚══███╔╝██╔════╝██║  ██║██╔════╝██║     ██║     ██╔════╝██║  ██║██╔════╝██╔════╝██║ ██╔╝\033[0m\n" +
	"\033[38;5;39m  ███╔╝ ███████╗███████║█████╗  ██║     ██║     ██║     ███████║█████╗  ██║     █████╔╝\033[0m\n" +
	"\033[38;5;33m ███╔╝  ╚════██║██╔══██║██╔══╝  ██║     ██║     ██║     ██╔══██║██╔══╝  ██║     ██╔═██╗\033[0m\n" +
	"\033[38;5;27m███████╗███████║██║  ██║███████╗███████╗███████╗╚██████╗██║  ██║███████╗╚██████╗██║  ██╗\033[0m\n" +
	"\033[38;5;21m╚══════╝╚══════╝╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝ ╚═════╝╚═╝  ╚═╝╚══════╝ ╚═════╝╚═╝  ╚═╝\033[0m\n" +
	"\n"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DisabledKatas []string `yaml:"disabled_katas"`

	// Color configuration for text reporter
	ErrorColor   string `yaml:"error_color"`
	WarningColor string `yaml:"warning_color"`
	InfoColor    string `yaml:"info_color"`
	IDColor      string `yaml:"id_color"`
	TitleColor   string `yaml:"title_color"`
	MessageColor string `yaml:"message_color"`
	LineColor    string `yaml:"line_color"`
	ColumnColor  string `yaml:"column_color"`
	NoColor      bool   `yaml:"no_color"`
	Verbose      bool   `yaml:"verbose"`
}

Config holds all configuration for zshellcheck.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns a Config with default values.

func MergeConfig

func MergeConfig(base, override Config) Config

MergeConfig merges values from `override` into `base`.

func NewConfigFromYAML

func NewConfigFromYAML(path string) (Config, error)

NewConfigFromYAML loads configuration from a YAML file.

Jump to

Keyboard shortcuts

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