run

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package run controls the loading of go code and the running of analyzers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPackages

func LoadPackages(packagesList ...string) ([]*packages.Package, bool, error)

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.

func Run

func Run(analyzers []*analysis.Analyzer, packages ...string) ([]util.Finding, bool, error)

Load go packages and run the analyzers on them. Returns a list of findings

func RunAnalyzers

func RunAnalyzers(analyzers []*analysis.Analyzer, pkg *packages.Package) ([]util.Finding, error)

Run analyzers on a package

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL