Documentation ¶
Index ¶
- Constants
- 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
- type Validator
Constants ¶
View Source
const EnvTestRun = "GL_TEST_RUN"
EnvTestRun value: "1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzerPlugin ¶ added in v1.23.0
type EnabledSet ¶ added in v1.10.2
type EnabledSet struct {
// contains filtered or unexported fields
}
func NewEnabledSet ¶ added in v1.10.2
func (EnabledSet) GetEnabledLintersMap ¶ added in v1.27.0
func (es EnabledSet) GetEnabledLintersMap() (map[string]*linter.Config, error)
func (EnabledSet) GetOptimizedLinters ¶ added in v1.27.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.10.2
type Manager struct {
// contains filtered or unexported fields
}
func (Manager) AllPresets ¶ added in v1.10.2
func (Manager) GetAllEnabledByDefaultLinters ¶ added in v1.10.2
func (Manager) GetAllLinterConfigsForPreset ¶ added in v1.10.2
func (Manager) GetAllSupportedLinterConfigs ¶ added in v1.10.2
Click to show internal directories.
Click to hide internal directories.