analysis

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DepAnalysis

type DepAnalysis struct {
	Module string `yaml:"module"`

	DirectDependencyCount   int `yaml:"direct_dependencies"`
	IndirectDependencyCount int `yaml:"indirect_dependencies"`

	MeanDepAge              time.Duration `yaml:"mean_age"`
	MaxDepAge               time.Duration `yaml:"max_age"`
	DepAgeMonthDistribution []int         `yaml:"age_per_month"`

	AvailableUpdates               int           `yaml:"available_updates"`
	AvailableUpdatesDirect         int           `yaml:"available_updates_direct"`
	MeanUpdateBacklog              time.Duration `yaml:"mean_backlog"`
	MaxUpdateBacklog               time.Duration `yaml:"max_backlog"`
	UpdateBacklogMonthDistribution []int         `yaml:"backlog_per_month"`

	MeanReverseDependencyCount    float64 `yaml:"mean_reverse_deps"`
	MaxReverseDependencyCount     int     `yaml:"max_reverse_deps"`
	ReverseDependencyDistribution []int   `yaml:"reverse_deps_distribution"`
}

func Analyse

func Analyse(log *logger.Logger, g *depgraph.DepGraph) (*DepAnalysis, error)

func (*DepAnalysis) Print

func (a *DepAnalysis) Print(f io.Writer) error

Jump to

Keyboard shortcuts

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