elixir

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package elixir implements a gorisk analyzer for Elixir/Erlang projects. It supports mix.lock and mix.exs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildIRGraph added in v0.4.2

func BuildIRGraph(g *graph.DependencyGraph) ir.IRGraph

BuildIRGraph builds a function-level IR graph for an Elixir dependency graph.

func Detect

func Detect(dir string) capability.CapabilitySet

Detect walks .ex and .exs files in dir and returns the combined capability set.

func DetectFunctions added in v0.4.2

func DetectFunctions(dir string, files []string) (map[string]ir.FunctionCaps, []ir.CallEdge, error)

DetectFunctions parses Elixir .ex/.exs files and returns per-function capability sets and call edges.

Types

type Adapter

type Adapter struct{}

Adapter implements the analyzer.Analyzer interface for Elixir projects.

func (Adapter) Load

func (Adapter) Load(dir string) (*graph.DependencyGraph, error)

Load parses the Elixir dependency lockfile in dir, detects capabilities from .ex/.exs source files, and returns a *graph.DependencyGraph.

func (Adapter) Name

func (Adapter) Name() string

type ElixirPackage

type ElixirPackage struct {
	Name         string
	Version      string
	Direct       bool
	Dependencies []string
}

ElixirPackage represents an Elixir/Hex dependency.

func Load

func Load(dir string) (pkgs []ElixirPackage, retErr error)

Load detects and parses the Elixir dependency lockfile in dir. Priority: mix.lock -> mix.exs Load never panics; it returns a structured error on failure.

Jump to

Keyboard shortcuts

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