Documentation ¶
Overview ¶
Package config contains functions and structs related to config
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultExcludes = strings.Join(defaultExcludes, "|")
DefaultExcludes is the regular expression for ignored files
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // CLI ShowVersion bool Help bool DryRun bool Path string // CONFIG FILE Version string Verbose bool Debug bool IgnoreDefaults bool SpacesAftertabs bool NoColor bool Exclude []string AllowedContentTypes []string PassedFiles []string Disable DisabledChecks // MISC Logger logger.Logger EditorconfigConfig *editorconfig.Config }
Config struct, contains everything a config can contain
func (Config) GetAsString ¶
GetAsString returns the config in a readable form
func (Config) GetExcludesAsRegularExpression ¶
GetExcludesAsRegularExpression returns the excludes as a combined regular expression
Click to show internal directories.
Click to hide internal directories.