programmaticchecker

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package programmaticchecker provides a mechanism for running a set of analyzers on a package programmatically.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg Config, analyzers ...*analysis.Analyzer) (analyzerResults map[*analysis.Analyzer][]any, diagnostics []analysis.SimpleDiagnostic, err error)

Types

type Config added in v0.1.5

type Config struct {
	// LoadConfig is the packages.Config to use when loading packages.
	LoadConfig packages.Config
	// ReverseImportExecutionOrder is true if packages that import a given package should execute _after_ the package itself.
	ReverseImportExecutionOrder bool
	// Patterns specify directory patterns for the package loader.
	Patterns []string
}

Config specifies the configuration for the programmatic checker.

Jump to

Keyboard shortcuts

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