Update dependencies and enhance pattern handling

- Added `tracing-appender` and `log` dependencies to improve error logging.
- Enhanced `walk.rs` to add error handling with warning logs for ignore patterns.
- Expanded Rust and JavaScript patterns with additional security vulnerability checks.
- Simplified and updated pattern queries for improved accuracy and consistency.
- Removed unused print statement in `index.rs`.
This commit is contained in:
elipeter 2025-06-17 02:22:14 +02:00
parent 22369cc404
commit 7bfce3ad7f
6 changed files with 203 additions and 32 deletions

View file

@ -43,11 +43,15 @@ pub fn spawn_senders(
let mut ob = OverrideBuilder::new(root);
for ext in &cfg.scanner.excluded_extensions {
ob.add(&format!("!*.{ext}")).unwrap();
if let Err(e) = ob.add(&format!("!*.{ext}")) {
tracing::warn!("could not add ignore pattern: {e}");
}
}
for dir in &cfg.scanner.excluded_directories {
ob.add(&format!("!**/{dir}/**")).unwrap();
if let Err(e) = ob.add(&format!("!**/{dir}/**")) {
tracing::warn!("could not add ignore pattern: {e}");
}
}
let overrides = ob.build().unwrap();