analyzer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzeError

type AnalyzeError struct {
	Err     string
	RelPath string
	Type    ErrorType
}

func (*AnalyzeError) Error

func (a *AnalyzeError) Error() string

type AnalyzeErrors

type AnalyzeErrors []*AnalyzeError

func (AnalyzeErrors) Error

func (a AnalyzeErrors) Error() string

type Analyzer

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

func NewAnalyzer

func NewAnalyzer() *Analyzer

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(ctx context.Context, root string) (err error)

type ErrorType

type ErrorType string
const (
	ErrTypeWarning ErrorType = "warning"
	ErrTypeIssue   ErrorType = "issue"
)

type NoLint

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

func NewNolint

func NewNolint(fSet *token.FileSet) *NoLint

func (*NoLint) Ignored

func (n *NoLint) Ignored(filename string, line int) (bool, error)

type Query

type Query struct {
	Query string
	Pos   token.Position
}

type SQLFuncCollection

type SQLFuncCollection map[string]map[string]int

func NewSQLFuncsCollection

func NewSQLFuncsCollection() SQLFuncCollection

func (SQLFuncCollection) Get

func (s SQLFuncCollection) Get(f *ssa.Function) (int, bool)

Jump to

Keyboard shortcuts

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