analyzer

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer interface {
	Name() string
	Load(dir string) (*graph.DependencyGraph, error)
}

Analyzer loads a dependency graph for a project directory.

func ForLang

func ForLang(lang, dir string) (Analyzer, error)

ForLang returns an Analyzer for the given language specifier. lang may be "auto", "go", or "node". "auto" detects from go.mod / package.json presence; if both exist, both analyzers run and their graphs are merged.

type LangFeatures

type LangFeatures struct {
	Upgrade      upgrade.Upgrader
	CapDiff      upgrade.CapDiffer
	PRDiff       prdiff.Differ
	Reachability reachability.Analyzer
}

LangFeatures holds the feature implementations registered for a language.

func FeaturesFor

func FeaturesFor(lang, dir string) (LangFeatures, error)

FeaturesFor returns the feature implementations for the given language. lang may be "auto", "go", or "node".

Jump to

Keyboard shortcuts

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