Documentation ¶
Index ¶
- func AllPresets() []string
- type AnalyzerPlugin
- type Builder
- type LinterBuilder
- type Manager
- func (m *Manager) GetAllEnabledByDefaultLinters() []*linter.Config
- func (m *Manager) GetAllLinterConfigsForPreset(p string) []*linter.Config
- func (m *Manager) GetAllSupportedLinterConfigs() []*linter.Config
- func (m *Manager) GetEnabledLintersMap() (map[string]*linter.Config, error)
- func (m *Manager) GetLinterConfigs(name string) []*linter.Config
- func (m *Manager) GetOptimizedLinters() ([]*linter.Config, error)
- type PluginGoBuilder
- type PluginModuleBuilder
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllPresets ¶
func AllPresets() []string
Types ¶
type AnalyzerPlugin ¶ added in v1.23.0
type LinterBuilder ¶ added in v1.57.0
type LinterBuilder struct{}
LinterBuilder builds the "internal" linters based on the configuration.
func NewLinterBuilder ¶ added in v1.57.0
func NewLinterBuilder() *LinterBuilder
NewLinterBuilder creates a new LinterBuilder.
type Manager ¶ added in v1.10.2
type Manager struct {
// contains filtered or unexported fields
}
Manager is a type of database for all linters (internals or plugins). It provides methods to access to the linter sets.
func NewManager ¶ added in v1.10.2
NewManager creates a new Manager. This constructor will call the builders to build and store the linters.
func (*Manager) GetAllEnabledByDefaultLinters ¶ added in v1.10.2
func (*Manager) GetAllLinterConfigsForPreset ¶ added in v1.10.2
func (*Manager) GetAllSupportedLinterConfigs ¶ added in v1.10.2
func (*Manager) GetEnabledLintersMap ¶ added in v1.57.0
func (*Manager) GetLinterConfigs ¶ added in v1.20.0
func (*Manager) GetOptimizedLinters ¶ added in v1.57.0
GetOptimizedLinters returns enabled linters after optimization (merging) of multiple linters into a fewer number of linters. E.g. some go/analysis linters can be optimized into one metalinter for data reuse and speed up.
type PluginGoBuilder ¶ added in v1.57.0
type PluginGoBuilder struct {
// contains filtered or unexported fields
}
PluginGoBuilder builds the custom linters (Go plugin) based on the configuration.
func NewPluginGoBuilder ¶ added in v1.57.0
func NewPluginGoBuilder(log logutils.Log) *PluginGoBuilder
NewPluginGoBuilder creates new PluginGoBuilder.
type PluginModuleBuilder ¶ added in v1.57.0
type PluginModuleBuilder struct {
// contains filtered or unexported fields
}
PluginModuleBuilder builds the custom linters (module plugin) based on the configuration.
func NewPluginModuleBuilder ¶ added in v1.57.0
func NewPluginModuleBuilder(log logutils.Log) *PluginModuleBuilder
NewPluginModuleBuilder creates new PluginModuleBuilder.
type Validator ¶ added in v1.10.2
type Validator struct {
// contains filtered or unexported fields
}