pub struct LoreGrepBuilder { /* private fields */ }
Expand description
Main LoreGrep API - the primary interface for code analysis
Quick Start Options:
LoreGrep::auto_discover()
- Zero-configuration setup with automatic project detectionLoreGrep::builder()
- Full control with enhanced builder patternLoreGrep::rust_project()
- Rust-optimized presetLoreGrep::python_project()
- Python-optimized presetLoreGrep::polyglot_project()
- Multi-language preset Builder for configuring LoreGrep instances
Implementations§
Source§impl LoreGrepBuilder
impl LoreGrepBuilder
Sourcepub fn configure_patterns_for_languages(self, languages: &[String]) -> Self
pub fn configure_patterns_for_languages(self, languages: &[String]) -> Self
Configure file patterns based on detected languages
Sourcepub fn with_all_analyzers(self) -> Self
pub fn with_all_analyzers(self) -> Self
Enable all available analyzers
Sourcepub fn exclude_common_build_dirs(self) -> Self
pub fn exclude_common_build_dirs(self) -> Self
Quick setup for common exclusions
Sourcepub fn include_source_files(self) -> Self
pub fn include_source_files(self) -> Self
Quick setup for common include patterns
Sourcepub fn exclude_test_dirs(self) -> Self
pub fn exclude_test_dirs(self) -> Self
Quick setup for common test directories exclusion
Sourcepub fn exclude_vendor_dirs(self) -> Self
pub fn exclude_vendor_dirs(self) -> Self
Quick setup for vendor/dependency directories exclusion
Sourcepub fn include_config_files(self) -> Self
pub fn include_config_files(self) -> Self
Include configuration files (useful for understanding project structure)
Sourcepub fn optimize_for_performance(self) -> Self
pub fn optimize_for_performance(self) -> Self
Configure for performance - exclude large/binary files and limit depth
Sourcepub fn comprehensive_analysis(self) -> Self
pub fn comprehensive_analysis(self) -> Self
Configure for comprehensive analysis - include more file types and increase limits
Sourcepub fn with_rust_analyzer(self) -> Self
pub fn with_rust_analyzer(self) -> Self
Add Rust language analyzer (enabled by default)
Sourcepub fn with_python_analyzer(self) -> Self
pub fn with_python_analyzer(self) -> Self
Add Python language analyzer
Sourcepub fn with_typescript_analyzer(self) -> Self
pub fn with_typescript_analyzer(self) -> Self
Add TypeScript/JavaScript analyzer (future)
Sourcepub fn with_go_analyzer(self) -> Self
pub fn with_go_analyzer(self) -> Self
Add Go language analyzer (future)
Sourcepub fn include_patterns(self, patterns: Vec<String>) -> Self
pub fn include_patterns(self, patterns: Vec<String>) -> Self
Add include patterns for file scanning
Sourcepub fn file_patterns(self, patterns: Vec<String>) -> Self
pub fn file_patterns(self, patterns: Vec<String>) -> Self
Add file patterns to include (alias for include_patterns)
Sourcepub fn exclude_patterns(self, patterns: Vec<String>) -> Self
pub fn exclude_patterns(self, patterns: Vec<String>) -> Self
Add exclude patterns for file scanning
Sourcepub fn max_file_size(self, size: u64) -> Self
pub fn max_file_size(self, size: u64) -> Self
Set maximum file size to analyze (in bytes)
Sourcepub fn follow_symlinks(self, follow: bool) -> Self
pub fn follow_symlinks(self, follow: bool) -> Self
Enable or disable following symbolic links
Sourcepub fn respect_gitignore(self, respect: bool) -> Self
pub fn respect_gitignore(self, respect: bool) -> Self
Enable or disable respecting .gitignore files
Sourcepub fn unlimited_depth(self) -> Self
pub fn unlimited_depth(self) -> Self
Disable maximum depth limit
Trait Implementations§
Source§impl Clone for LoreGrepBuilder
impl Clone for LoreGrepBuilder
Source§fn clone(&self) -> LoreGrepBuilder
fn clone(&self) -> LoreGrepBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more