run

package
v0.0.0-...-04ceea2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 7 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

View Source
var CGFlat bool

Functions

func LoadPackages

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

Load go packages

func RemoveItem

func RemoveItem(pkg *packages.Package, pkglist []*packages.Package) []*packages.Package

Remove bad packages from the list of packages to be scanned

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