zpass

package
v0.0.0-...-e7c070e Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIgnoreFlagName

func AddIgnoreFlagName(names ...string)

func IsDebug

func IsDebug(s string) bool

IsDebug 判断是否指定 debug 类型 Debug is a set of single-letter flags:

f	show [f]acts as they are created
p	disable [p]arallel execution of analyzers
s	do additional [s]anity checks on fact types and serialization
t	show [t]iming info (NB: use 'p' flag to avoid GC/scheduler noise)
v	show [v]erbose logging

func IsDebugFacts

func IsDebugFacts() bool

IsDebugFacts how facts as they are created

func IsDebugParallel

func IsDebugParallel() bool

IsDebugParallel disable parallel execution of analyzers

func IsDebugSanity

func IsDebugSanity() bool

IsDebugSanity do additional sanity checks on fact types and serialization

func IsDebugTiming

func IsDebugTiming() bool

IsDebugTiming show timing info

func IsDebugVerbose

func IsDebugVerbose() bool

IsDebugVerbose show verbose logging

func IsTestPkg

func IsTestPkg(pkg string) bool

func IsTrace

func IsTrace() bool

IsTrace verbose trace logs

func NewInitAnalyzer

func NewInitAnalyzer(c *Container) *analysis.Analyzer

func PkgPath

func PkgPath(name string) string

Types

type Container

type Container struct {
	Tests bool
	// contains filtered or unexported fields
}

func (*Container) AddPass

func (c *Container) AddPass(p *analysis.Pass)

func (*Container) CurrentPass

func (c *Container) CurrentPass() *analysis.Pass

func (*Container) FindAstFileByObject

func (c *Container) FindAstFileByObject(ov types.Object) (ap *analysis.Pass, f *ast.File, err error)

func (*Container) FindPass

func (c *Container) FindPass(pkg string) *analysis.Pass

func (*Container) SetCurrentPass

func (c *Container) SetCurrentPass(p *analysis.Pass)

Jump to

Keyboard shortcuts

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