Expand description
Scan execution and orchestration.
This module provides the core scanning functionality, including:
- Scan mode determination and path resolution
- Configuration merging (CLI + config file)
- Running scans with various scanners
- Output formatting
- Watch mode support
Re-exports§
pub use config::EffectiveConfig;
Modules§
- config
- Effective configuration after merging CLI and config file.
Enums§
- Scan
Mode - Scan mode based on CLI options.
- Watch
Mode Result - Result of running in watch mode.
Functions§
- detect_
client_ for_ path - Determine which AI client a file path belongs to.
- format_
result - Format scan result using CLI settings.
- format_
result_ with_ config - Format result using effective config (avoids reloading config).
- is_
text_ file - Check if a file is a text file using the default configuration.
- is_
text_ file_ with_ config - Check if a file is a text file using the provided configuration.
- resolve_
scan_ paths - Resolve paths to scan based on CLI options.
- run_
scan - Run a scan using CLI settings.
- run_
scan_ with_ config - Run scan with pre-loaded config (for testing).
- scan_
path_ with_ cve_ db - Scan a path for CVE vulnerabilities in dependencies.
- scan_
path_ with_ malware_ db - Scan a path for malware signatures.
- setup_
watch_ mode - Set up watch mode and return the file watcher.
- watch_
iteration - Run one iteration of the watch loop.