Documentation ¶
Overview ¶
Package goanalysis 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 ¶
- Constants
- func DummyRun(_ *analysis.Pass) (any, error)
- func MakeFakeLoaderProgram(pass *analysis.Pass) *loader.Program
- type Diagnostic
- type EncodingIssue
- type Fact
- type IllTypedError
- type Issue
- type 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
- type MetaLinter
Constants ¶
View Source
const ( TheOnlyAnalyzerName = "the_only_name" TheOnlyanalyzerDoc = "the_only_doc" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Diagnostic ¶
type EncodingIssue ¶
type IllTypedError ¶
func (*IllTypedError) Error ¶
func (e *IllTypedError) Error() string
type Linter ¶
type Linter struct {
// contains filtered or unexported fields
}
func (*Linter) UseOriginalPackages ¶
func (lnt *Linter) UseOriginalPackages()
func (*Linter) WithContextSetter ¶
func (*Linter) WithIssuesReporter ¶
func (*Linter) WithLoadMode ¶
type MetaLinter ¶
type MetaLinter struct {
// contains filtered or unexported fields
}
func NewMetaLinter ¶
func NewMetaLinter(linters []*Linter) *MetaLinter
func (MetaLinter) Desc ¶
func (ml MetaLinter) Desc() string
func (MetaLinter) Name ¶
func (ml MetaLinter) Name() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.