analyzer

package
v0.0.0-...-a7f935e Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Analyzer defines the analyzer for closecheck
	Analyzer = &analysis.Analyzer{
		Name:      "closecheck",
		Doc:       "check that any io.Closer in return a value is closed",
		Run:       run,
		Requires:  []*analysis.Analyzer{inspect.Analyzer},
		FactTypes: []analysis.Fact{new(ioCloserFunc)},
	}
)

Functions

This section is empty.

Types

type AssignVisitor

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

AssignVisitor is in charge of preprocessing packages to find functions that close io.Closers

type FunctionVisitor

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

FunctionVisitor is in charge of preprocessing packages to find functions that close io.Closers

Jump to

Keyboard shortcuts

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