lintersdb

package
v1.50.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const EnvTestRun = "GL_TEST_RUN"

EnvTestRun value: "1"

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzerPlugin

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

type EnabledSet

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

func NewEnabledSet

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

func (EnabledSet) GetEnabledLintersMap

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

func (EnabledSet) GetOptimizedLinters

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

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

func NewManager

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

func (Manager) AllPresets

func (Manager) AllPresets() []string

func (Manager) GetAllEnabledByDefaultLinters

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

func (Manager) GetAllLinterConfigsForPreset

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

func (Manager) GetAllSupportedLinterConfigs

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

func (Manager) GetLinterConfigs

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

func (*Manager) WithCustomLinters

func (m *Manager) WithCustomLinters() *Manager

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

type Validator

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

func NewValidator

func NewValidator(m *Manager) *Validator

Jump to

Keyboard shortcuts

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