lintersdb

package
v1.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzerPlugin added in v1.45.0

type AnalyzerPlugin interface {
	GetAnalyzers() []*analysis.Analyzer
}

type EnabledSet added in v1.45.0

type EnabledSet struct {
	// contains filtered or unexported fields
}

func NewEnabledSet added in v1.45.0

func NewEnabledSet(m *Manager, v *Validator, log logutils.Log, cfg *config.Config) *EnabledSet

func (EnabledSet) GetEnabledLintersMap added in v1.45.0

func (es EnabledSet) GetEnabledLintersMap() (map[string]*linter.Config, error)

func (EnabledSet) GetOptimizedLinters added in v1.45.0

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.45.0

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager added in v1.45.0

func NewManager(cfg *config.Config, log logutils.Log) *Manager

func (Manager) AllPresets added in v1.45.0

func (Manager) AllPresets() []string

func (Manager) GetAllEnabledByDefaultLinters added in v1.45.0

func (m Manager) GetAllEnabledByDefaultLinters() []*linter.Config

func (Manager) GetAllLinterConfigsForPreset added in v1.45.0

func (m Manager) GetAllLinterConfigsForPreset(p string) []*linter.Config

func (Manager) GetAllSupportedLinterConfigs added in v1.45.0

func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config

func (Manager) GetLinterConfigs added in v1.45.0

func (m Manager) GetLinterConfigs(name string) []*linter.Config

func (*Manager) WithCustomLinters added in v1.45.0

func (m *Manager) WithCustomLinters() *Manager

WithCustomLinters loads private linters that are specified in the golangci config file.

type Validator added in v1.45.0

type Validator struct {
	// contains filtered or unexported fields
}

func NewValidator added in v1.45.0

func NewValidator(m *Manager) *Validator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL