Documentation
¶
Overview ¶
Package analyzerutil provides shared analyzer setup for custom linters.
Index ¶
- func Indexes(pass *analysis.Pass) (nolint.DirectiveIndex, filecheck.GeneratedIndex, error)
- func New(name, doc string, run func(*analysis.Pass) (any, error)) *analysis.Analyzer
- func NewAtPath(name, doc, packagePath string, run func(*analysis.Pass) (any, error)) *analysis.Analyzer
- func Preorder(pass *analysis.Pass, nodeFilter []ast.Node, fn func(ast.Node)) (any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Indexes ¶ added in v0.87.1
func Indexes(pass *analysis.Pass) (nolint.DirectiveIndex, filecheck.GeneratedIndex, error)
Indexes returns the nolint directive index and the generated-file index for pass. Both indexes are guaranteed to be available for analyzers created with New or NewAtPath, which declare the producing analyzers in Requires.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.