#![cfg_attr(coverage_nightly, coverage(off))]
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::path::Path;
include!("polyglot_analyzer_types.rs");
include!("polyglot_analyzer_detection.rs");
include!("polyglot_analyzer_dependencies.rs");
include!("polyglot_analyzer_architecture.rs");
fn should_skip_directory(path: &Path) -> bool {
if let Some(dir_name) = path.file_name().and_then(|n| n.to_str()) {
matches!(
dir_name,
"node_modules" | "target" | "build" | ".git" | "__pycache__" | ".venv" | "venv"
)
} else {
false
}
}
impl Default for PolyglotAnalyzer {
fn default() -> Self {
Self::new()
}
}
#[cfg(test)]
#[path = "polyglot_analyzer_tests.rs"]
mod tests;