mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-24 20:28:06 +02:00
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:
parent
22369cc404
commit
7bfce3ad7f
6 changed files with 203 additions and 32 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue