Documentation ¶
Overview ¶
Package run controls the loading of go code and the running of analyzers.
Index ¶
- func LoadPackages(packagesList ...string) ([]*packages.Package, bool, error)
- func RemoveBadPackages(allPackages []*packages.Package, badPackages map[*packages.Package]bool) []*packages.Package
- func Run(analyzers []*analysis.Analyzer, packages ...string) ([]util.Finding, bool, error)
- func RunAnalyzers(analyzers []*analysis.Analyzer, pkg *packages.Package) ([]util.Finding, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPackages ¶
Load go packages
func RemoveBadPackages ¶
func RemoveBadPackages(allPackages []*packages.Package, badPackages map[*packages.Package]bool) []*packages.Package
RemoveBadPackages takes the full list of packages and a map containing the packages that produced errors while being loaded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.