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 TheOnlyAnalyzerName + const TheOnlyanalyzerDoc + func DummyRun(_ *analysis.Pass) (any, error) + func MakeFakeLoaderProgram(pass *analysis.Pass) *loader.Program + type Diagnostic struct + Analyzer *analysis.Analyzer + Pkg *packages.Package + Position token.Position + type EncodingIssue struct + ExpectNoLint bool + ExpectedNoLintLinter string + FromLinter string + LineRange *result.Range + Pos token.Position + Replacement *result.Replacement + Text string + type Fact struct + Fact analysis.Fact + Path string + type IllTypedError struct + Pkg *packages.Package + func (e *IllTypedError) Error() string + type Issue struct + Pass *analysis.Pass + func NewIssue(i *result.Issue, pass *analysis.Pass) Issue + type Linter struct + func NewLinter(name, desc string, analyzers []*analysis.Analyzer, ...) *Linter + func (lnt *Linter) Desc() string + func (lnt *Linter) LoadMode() LoadMode + func (lnt *Linter) Name() string + func (lnt *Linter) Run(_ context.Context, lintCtx *linter.Context) ([]result.Issue, error) + func (lnt *Linter) UseOriginalPackages() + func (lnt *Linter) WithContextSetter(cs func(*linter.Context)) *Linter + func (lnt *Linter) WithIssuesReporter(r func(*linter.Context) []Issue) *Linter + func (lnt *Linter) WithLoadMode(loadMode LoadMode) *Linter + type LoadMode int + const LoadModeNone + const LoadModeSyntax + const LoadModeTypesInfo + const LoadModeWholeProgram + func (loadMode LoadMode) String() string + type MetaLinter struct + func NewMetaLinter(linters []*Linter) *MetaLinter + func (ml MetaLinter) Desc() string + func (ml MetaLinter) Name() string + func (ml MetaLinter) Run(_ context.Context, lintCtx *linter.Context) ([]result.Issue, error)