Documentation ¶
Overview ¶
Package checker defines the implementation of the checker commands. The same code drives the multi-analysis driver, the single-analysis driver that is conventionally provided for convenience along with each analysis package, and the test driver.
Index ¶
- Variables
- func NeedFacts(analyzers []*analysis.Analyzer) bool
- type Diagnostic
- type Fact
- type Linter
- func (lnt Linter) AnalyzerToLinterNameMapping() map[*analysis.Analyzer]string
- func (lnt Linter) Analyzers() []*analysis.Analyzer
- func (lnt Linter) Cfg() map[string]map[string]interface{}
- func (lnt Linter) Desc() string
- func (lnt Linter) Name() string
- func (lnt Linter) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)
- type MetaLinter
- type SupportedLinter
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Debug = os.Getenv("GL_GOANALYSIS_DEBUG")
)
Functions ¶
Types ¶
type Diagnostic ¶ added in v1.19.0
type Linter ¶
type Linter struct {
// contains filtered or unexported fields
}
func (Linter) AnalyzerToLinterNameMapping ¶ added in v1.19.0
type MetaLinter ¶ added in v1.19.0
type MetaLinter struct {
// contains filtered or unexported fields
}
func NewMetaLinter ¶ added in v1.19.0
func NewMetaLinter(linters []*Linter, analyzerToLinterName map[*analysis.Analyzer]string) *MetaLinter
func (MetaLinter) Desc ¶ added in v1.19.0
func (ml MetaLinter) Desc() string
func (MetaLinter) Name ¶ added in v1.19.0
func (ml MetaLinter) Name() string
Click to show internal directories.
Click to hide internal directories.