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.
Click to show internal directories.
Click to hide internal directories.