lintersdb

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) Get

func (es EnabledSet) Get(optimize bool) ([]*linter.Config, error)

type Manager

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

func NewManager

func NewManager(cfg *config.Config) *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) GetLinterConfig

func (m Manager) GetLinterConfig(name string) *linter.Config

func (Manager) GetMetaLinter

func (m Manager) GetMetaLinter(name string) linter.MetaLinter

func (Manager) GetMetaLinters

func (Manager) GetMetaLinters() map[string]linter.MetaLinter

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