Documentation
¶
Overview ¶
Package config implements revive's configuration data structures and related methods.
Index ¶
- Constants
- func AllRules() []lint.Rule
- func Default() *lint.Config
- func DefaultRules() []lint.Rule
- func EnabledRules(config *lint.Config) []lint.Rule
- func GetConfig(configPath string) (*lint.Config, error)
- func GetFormatter(formatterName string) (lint.Formatter, error)
- func GetLintingRules(config *lint.Config, extraRules []lint.Rule) ([]lint.Rule, error)
- func Normalize(config *lint.Config)
Constants ¶
View Source
const DefaultConfidence = 0.8
DefaultConfidence is the default confidence level for revive's linter.
Variables ¶
This section is empty.
Functions ¶
func AllRules ¶ added in v1.16.0
AllRules returns a copy of the list of all rules registered in revive.
func Default ¶ added in v1.16.0
Default returns the default linter configuration, used when no configuration is provided.
func DefaultRules ¶ added in v1.16.0
DefaultRules returns a copy of the list of rules that are enabled by default.
func EnabledRules ¶ added in v1.16.0
EnabledRules returns the rules that are enabled in the given configuration.
func GetFormatter ¶
GetFormatter yields the formatter for lint failures.
func GetLintingRules ¶
GetLintingRules yields the linting rules that must be applied by the linter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.