Documentation ¶
Overview ¶
Package config contains helpers, defaults for linter
Index ¶
- func GetEnabledRules(conf *lint.Config) ([]lint.Rule, error)
- func GetFormatter(conf *lint.Config) (lint.Formatter, error)
- func LookupAndParse() (*lint.Config, error)
- func NewDefault() *lint.Config
- func NewLinter(conf *lint.Config) (*lint.Linter, error)
- func Parse(confPath string) (*lint.Config, error)
- func Validate(conf *lint.Config) []error
- func WriteTo(w io.Writer, conf *lint.Config) (retErr error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnabledRules ¶ added in v0.4.0
GetEnabledRules forms Rule object for rules which are enabled in config
func GetFormatter ¶
GetFormatter returns the formatter as defined in conf
func LookupAndParse ¶ added in v0.8.0
LookupAndParse gets the config path according to the precedence if exists, parses the config file and returns config instance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.