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
const Banner = "\n" +
"\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 ¶
MergeConfig merges values from `override` into `base`.
func NewConfigFromYAML ¶
NewConfigFromYAML loads configuration from a YAML file.
Click to show internal directories.
Click to hide internal directories.