Pipeline.Codebase.Analyzers.ElixirAnalyzer (pipeline v0.0.1)

View Source

Specialized analyzer for Elixir projects.

Provides deep analysis of Elixir codebases including:

  • Module and function discovery
  • Dependency analysis
  • Test file relationships
  • Documentation extraction

Summary

Functions

Analyze an Elixir file and extract module information.

Extract documentation from module.

Find module dependencies within the project.

Find the corresponding test file for a source file.

Functions

analyze_file(file_path)

@spec analyze_file(String.t()) :: {:ok, map()} | {:error, String.t()}

Analyze an Elixir file and extract module information.

extract_documentation(file_path)

@spec extract_documentation(String.t()) :: %{
  module_doc: String.t() | nil,
  function_docs: map()
}

Extract documentation from module.

find_module_dependencies(file_path, project_root)

@spec find_module_dependencies(String.t(), String.t()) :: [String.t()]

Find module dependencies within the project.

find_test_file(source_file, project_root)

@spec find_test_file(String.t(), String.t()) :: String.t() | nil

Find the corresponding test file for a source file.