run

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrResultMissing = errors.New("analyzer result missing")

ErrResultMissing is returned when a required analyzer result is missing. This typically indicates a configuration error where the analyzer's Requires field is not properly set.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Analyzers represent the Analyzers to be enabled.
	Analyzers config.Analyzers

	// Behavior holds layout and behavioral options.
	Behavior config.Behavior

	// MaxLines specifies the maximum number of lines a declaration can span to be considered for moving
	// into control flow initializers.
	MaxLines int
}

Options represent configuration runOptions for the scopeguard analyzer.

func DefaultOptions

func DefaultOptions() *Options

DefaultOptions initializes and returns a new Options instance with default values.

func (*Options) Run

func (r *Options) Run(p *analysis.Pass) (any, error)

Run executes the scopeguard analyzer's pipeline.

Jump to

Keyboard shortcuts

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