engine

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzePackages

func AnalyzePackages(ctx context.Context, root string, cfg *Config) ([]result.Issue, error)

AnalyzePackages performs file-by-file analysis of all Go files in a directory, regardless of package structure.

func Run

func Run(ctx context.Context, path string, cfg interface{}) ([]result.Issue, error)

Run is a package-level function that creates an engine and runs analysis. This is the main entry point used by the CLI.

Types

type Config

type Config struct {
	EnableSSA      bool // Enables SSA-based analyzers
	EnableTaint    bool // Enables taint analysis
	EnableAST      bool // Enables AST-based rules
	EnableBuiltins bool // Enables built-in rule handlers
}

Config defines the configuration for analysis execution.

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine coordinates the entire static analysis process.

func New

func New(cfg *Config) *Engine

New creates a new Engine instance.

func (*Engine) Run

func (e *Engine) Run(ctx context.Context, proj *analyzer.AnalyzerContext) ([]*result.Issue, error)

Run executes the full analysis pipeline and returns discovered issues.

Jump to

Keyboard shortcuts

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