dependencies

package
v0.3.4-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DependencyAnalysis

func DependencyAnalysis(state *loadprogram.State, dc DependencyConfigs) reachability.DependencyGraph

DependencyAnalysis runs the dependency analysis on all the functions in the ssa.Program Writes a coverage file in covFile indicating which functions are reachable.

Types

type DependencyConfigs

type DependencyConfigs struct {
	// JsonFlag indicates whether the output should be Json-formatted (TODO).
	JsonFlag bool
	// IncludeStdlib indicates whether the standard library should be included in the analysis.
	IncludeStdlib bool
	// CoverageFile is a writer that will contain the coverage data if non-nil.
	CoverageFile io.Writer
	// CsvFile is a writer that will contain the list of dependency usage if non-nil.
	CsvFile io.Writer
	// UsageThreshold is a dependency usage percentage threshold below which a warning is produced.
	UsageThreshold float64
	// LocThreshold is an absolute dependency usage threshold below which a warning is produced
	LocThreshold int
	// ComputeGraph indicates whether the dependency graph should be computed.
	ComputeGraph bool
}

DependencyConfigs contains output settings for the dependency analysis.

Jump to

Keyboard shortcuts

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