Documentation ¶
Index ¶
- type AnalyzerPlugin
- type EnabledSet
- type Manager
- func (Manager) AllPresets() []string
- func (m Manager) GetAllEnabledByDefaultLinters() []*linter.Config
- func (m Manager) GetAllLinterConfigsForPreset(p string) []*linter.Config
- func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config
- func (m Manager) GetLinterConfigs(name string) []*linter.Config
- func (m *Manager) WithCustomLinters() *Manager
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzerPlugin ¶ added in v1.42.2
type EnabledSet ¶ added in v1.42.2
type EnabledSet struct {
// contains filtered or unexported fields
}
func NewEnabledSet ¶ added in v1.42.2
func (EnabledSet) GetEnabledLintersMap ¶ added in v1.42.2
func (es EnabledSet) GetEnabledLintersMap() (map[string]*linter.Config, error)
func (EnabledSet) GetOptimizedLinters ¶ added in v1.42.2
func (es EnabledSet) GetOptimizedLinters() ([]*linter.Config, error)
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 Manager ¶ added in v1.42.2
type Manager struct {
// contains filtered or unexported fields
}
func (Manager) AllPresets ¶ added in v1.42.2
func (Manager) GetAllEnabledByDefaultLinters ¶ added in v1.42.2
func (Manager) GetAllLinterConfigsForPreset ¶ added in v1.42.2
func (Manager) GetAllSupportedLinterConfigs ¶ added in v1.42.2
func (Manager) GetLinterConfigs ¶ added in v1.42.2
func (*Manager) WithCustomLinters ¶ added in v1.42.2
WithCustomLinters loads private linters that are specified in the golangci config file.
Click to show internal directories.
Click to hide internal directories.