Documentation ¶
Overview ¶
Package gclplugin implements the golangci-lint's module plugin interface for NilAway to be used as a private linter in golangci-lint. See more details at https://golangci-lint.run/plugins/module-plugins/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NilAwayPlugin ¶
type NilAwayPlugin struct {
// contains filtered or unexported fields
}
NilAwayPlugin is the NilAway plugin wrapper for golangci-lint.
func (*NilAwayPlugin) BuildAnalyzers ¶
func (p *NilAwayPlugin) BuildAnalyzers() ([]*analysis.Analyzer, error)
BuildAnalyzers builds the NilAway analyzer with the configurations applied to the config analyzer.
func (*NilAwayPlugin) GetLoadMode ¶
func (p *NilAwayPlugin) GetLoadMode() string
GetLoadMode returns the load mode of the NilAway plugin (requiring types info).
Click to show internal directories.
Click to hide internal directories.