codeanalysis

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOnStartCallback            = errors.New("failed to execute OnStart callback")
	ErrPerformCodeAnalysis        = errors.New("failed to perform codeanalysis")
	ErrReportCodeAnalysisFindings = errors.New("failed to report code analysis findings")
	ErrFinishReporting            = errors.New("failed to finish reporting")
	ErrOnFinishCallback           = errors.New("failed to execute OnFinish callback")
	ErrCreateLocalFileSystem      = errors.New("failed to create local filesystem")
	ErrGetAllLanguages            = errors.New("failed to get all languages")
	ErrCreateSourceWalker         = errors.New("failed to create source walker")
	ErrCreateTreeWalker           = errors.New("failed to create tree walker")
	ErrSetupCallgraphPlugin       = errors.New("failed to setup callgraph plugin")
	ErrCreatePluginExecutor       = errors.New("failed to create plugin executor")
	ErrExecutePlugin              = errors.New("failed to execute plugin")
	ErrCreateSignatureMatcher     = errors.New("failed to create signature matcher")
	ErrGetTreeData                = errors.New("failed to get tree data")
	ErrMatchSignatures            = errors.New("failed to match signatures")
	ErrRecordCodeAnalysisFindings = errors.New("failed to record code analysis findings in reporter")
	ErrFinishReporter             = errors.New("failed to finish reporter")
)

Error constants for code analysis workflow

Functions

This section is empty.

Types

type CodeAnalysisCallbackRegistry

type CodeAnalysisCallbackRegistry struct {
	OnStart  func() error
	OnFinish func() error
	OnErr    func(msg string, err error)
}

type CodeAnalysisWorkflow

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

func NewCodeAnalysisWorkflow

func NewCodeAnalysisWorkflow(config CodeAnalysisWorkflowConfig, reporters []reporter.Reporter) *CodeAnalysisWorkflow

func (*CodeAnalysisWorkflow) Execute

type CodeAnalysisWorkflowConfig

type CodeAnalysisWorkflowConfig struct {
	Tool              common.ToolMetadata
	SourcePath        string
	SignaturesToMatch []*callgraphv1.Signature
	Callbacks         CodeAnalysisCallbackRegistry
}

Jump to

Keyboard shortcuts

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