Skip to main content

Module run

Module run 

Source
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§

ScanMode
Scan mode based on CLI options.
WatchModeResult
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.