Search documentation of Ragex

# Ragex.Analyzers.Directory (Ragex v0.4.0)

View Source

Analyzes entire directories recursively, detecting and analyzing files based on their extensions.

This module provides batch analysis capabilities for entire projects.

## Summary

### Functions

analyze_directory(path, opts \\ [])

Analyzes all supported files in a directory recursively.

analyze_files(file_paths, opts \\ [])

Analyzes multiple files and stores results in the graph.

## Functions

# analyze_directory(path, opts \\ [])

Analyzes all supported files in a directory recursively.

Returns a summary of analyzed files and any errors encountered.

## Options

- `:max_depth` - Maximum directory depth (default: 10)
- `:exclude_patterns` - Patterns to exclude (default: common build dirs)
- `:incremental` - Enable incremental updates (default: true)
- `:force_refresh` - Force full refresh even if unchanged (default: false)
- `:notify` - Send MCP progress notifications (default: true)

# analyze_files(file_paths, opts \\ [])

Analyzes multiple files and stores results in the graph.

## Options

- `:incremental` - Skip unchanged files (default: true)
- `:force_refresh` - Force analysis even if unchanged (default: false)
- `:notify` - Send MCP progress notifications (default: true)