Versions in this module Expand all Collapse all v1 v1.0.1 Jul 30, 2023 v1.0.0 Jul 30, 2023 Changes in this version + const LastLinter + const PresetBugs + const PresetComment + const PresetComplexity + const PresetError + const PresetFormatting + const PresetImport + const PresetMetaLinter + const PresetModule + const PresetPerformance + const PresetSQL + const PresetStyle + const PresetTest + const PresetUnused + type Config struct + AlternativeNames []string + CanAutoFix bool + Deprecation *Deprecation + DoesChangeTypes bool + EnabledByDefault bool + InPresets []string + Internal bool + IsSlow bool + Linter Linter + LoadMode packages.LoadMode + OriginalURL string + Since string + func NewConfig(linter Linter) *Config + func (lc *Config) AllNames() []string + func (lc *Config) ConsiderSlow() *Config + func (lc *Config) Deprecated(message, version, replacement string) *Config + func (lc *Config) IsDeprecated() bool + func (lc *Config) IsSlowLinter() bool + func (lc *Config) Name() string + func (lc *Config) WithAlternativeNames(names ...string) *Config + func (lc *Config) WithAutoFix() *Config + func (lc *Config) WithChangeTypes() *Config + func (lc *Config) WithEnabledByDefault() *Config + func (lc *Config) WithInternal() *Config + func (lc *Config) WithLoadFiles() *Config + func (lc *Config) WithLoadForGoAnalysis() *Config + func (lc *Config) WithNoopFallback(cfg *config.Config) *Config + func (lc *Config) WithPresets(presets ...string) *Config + func (lc *Config) WithSince(version string) *Config + func (lc *Config) WithURL(url string) *Config + type Context struct + Cfg *config.Config + FileCache *fsutils.FileCache + LineCache *fsutils.LineCache + LoadGuard *load.Guard + Log logutils.Log + OriginalPackages []*packages.Package + Packages []*packages.Package + PkgCache *pkgcache.Cache + func (c *Context) ClearTypesInPackages() + func (c *Context) Settings() *config.LintersSettings + type Deprecation struct + Message string + Replacement string + Since string + type Linter interface + Desc func() string + Name func() string + Run func(ctx context.Context, lintCtx *Context) ([]result.Issue, error) + type Noop struct + func (n Noop) Desc() string + func (n Noop) Name() string + func (n Noop) Run(_ context.Context, lintCtx *Context) ([]result.Issue, error)