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 ¶
type LinterBuilder ¶
type LinterBuilder struct{}
LinterBuilder builds the "internal" linters based on the configuration.
func NewLinterBuilder ¶
func NewLinterBuilder() *LinterBuilder
NewLinterBuilder creates a new LinterBuilder.
type Manager ¶
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 ¶
NewManager creates a new Manager. This constructor will call the builders to build and store the linters.
func (*Manager) GetAllEnabledByDefaultLinters ¶
func (*Manager) GetAllLinterConfigsForPreset ¶
func (*Manager) GetAllSupportedLinterConfigs ¶
func (*Manager) GetEnabledLintersMap ¶
func (*Manager) GetOptimizedLinters ¶
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 ¶
type PluginGoBuilder struct {
// contains filtered or unexported fields
}
PluginGoBuilder builds the custom linters (Go plugin) based on the configuration.
func NewPluginGoBuilder ¶
func NewPluginGoBuilder(log logutils.Log) *PluginGoBuilder
NewPluginGoBuilder creates new PluginGoBuilder.
type PluginModuleBuilder ¶
type PluginModuleBuilder struct {
// contains filtered or unexported fields
}
PluginModuleBuilder builds the custom linters (module plugin) based on the configuration.
func NewPluginModuleBuilder ¶
func NewPluginModuleBuilder(log logutils.Log) *PluginModuleBuilder
NewPluginModuleBuilder creates new PluginModuleBuilder.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}