use std::collections::HashSet;
use std::path::PathBuf;
pub struct ScanConfig {
pub root_dir: PathBuf,
pub extensions: Vec<String>,
pub skip_dirs: HashSet<String>,
pub exported_only: bool,
pub max_files: usize,
}
impl Default for ScanConfig {
fn default() -> Self {
Self {
root_dir: PathBuf::from("."),
extensions: vec![".ts".into(), ".tsx".into()],
skip_dirs: [
"node_modules",
".git",
"dist",
"build",
".macroforge",
"coverage",
".next",
".nuxt",
".svelte-kit",
]
.into_iter()
.map(String::from)
.collect(),
exported_only: false,
max_files: 10_000,
}
}
}