analyzer

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlenCmd         = "slen"
	SlenDescription = "verifies if slice len was checked before accessing the array"
)

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: SlenCmd,
	Doc:  SlenDescription,
	Run:  run,
}

Functions

This section is empty.

Types

type SlenAnalyzer

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

func NewSlenAnalyzer

func NewSlenAnalyzer(pass *analysis.Pass, info *types.Info) *SlenAnalyzer

func (*SlenAnalyzer) Inspect

func (a *SlenAnalyzer) Inspect(node ast.Node) (procceed bool)

Jump to

Keyboard shortcuts

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