analyzer

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 10 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", "node", or "php". "auto" detects from go.mod / package.json / composer.json presence.

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", "node", or "php".

Jump to

Keyboard shortcuts

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