Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Linters Linters
LintersSettings LintersSettings `mapstructure:"linters-settings"`
}
Config is the root of a configuration.
func (Config) EnabledLinters ¶
func (c Config) EnabledLinters() map[string]LinterSettings
EnabledLinters return the list of effectively enabled linters.
type Filters ¶
type Filters struct {
GitPattern []string `mapstructure:"git-pattern"`
FindPattern []string `mapstructure:"find-pattern"`
Files []string
Folders []string
}
Filters limit the linted files with various filtering patterns. Some linter may not use all patterns.
type InvalidStructureError ¶
type InvalidStructureError struct {
Err error
}
An InvalidStructureError describes a not well structured config file passed to Unmarshal.
func (*InvalidStructureError) Error ¶
func (e *InvalidStructureError) Error() string
type InvalidYamlError ¶
type InvalidYamlError struct {
Err error
}
An InvalidYamlError describes a not well YAML formated invalid input passed to Unmarshal.
func (*InvalidYamlError) Error ¶
func (e *InvalidYamlError) Error() string
type LinterSettings ¶
type LinterSettings struct {
Version []string
Command []string
Args []string
Workdir string
Filters Filters
}
LinterSettings hold one linter configuration.
type LintersSettings ¶
type LintersSettings struct {
Settings map[string]LinterSettings `mapstructure:",remain"`
}
LintersSettings is just a wrapper for all the linters settings.
Click to show internal directories.
Click to hide internal directories.