pub struct ScanConfig {Show 17 fields
pub format: Option<String>,
pub strict: bool,
pub scan_type: Option<String>,
pub recursive: bool,
pub ci: bool,
pub verbose: bool,
pub min_confidence: Option<String>,
pub skip_comments: bool,
pub fix_hint: bool,
pub no_malware_scan: bool,
pub watch: bool,
pub malware_db: Option<String>,
pub custom_rules: Option<String>,
pub output: Option<String>,
pub deep_scan: bool,
pub fix: bool,
pub fix_dry_run: bool,
}Expand description
Scan configuration (corresponds to CLI options)
Fields§
§format: Option<String>Output format: “terminal”, “json”, “sarif”, “html”
strict: boolStrict mode: show medium/low severity findings and treat warnings as errors
scan_type: Option<String>Scan type: “skill”, “hook”, “mcp”, “command”, “rules”, “docker”, “dependency”, “subagent”, “plugin”
recursive: boolRecursive scan
ci: boolCI mode: non-interactive output
verbose: boolVerbose output
min_confidence: Option<String>Minimum confidence level: “tentative”, “firm”, “certain”
skip_comments: boolSkip comment lines when scanning
fix_hint: boolShow fix hints in terminal output
no_malware_scan: boolDisable malware signature scanning
watch: boolWatch mode: continuously monitor files for changes
malware_db: Option<String>Path to a custom malware signatures database (JSON)
custom_rules: Option<String>Path to a custom rules file (YAML format)
output: Option<String>Output file path (for HTML/JSON/SARIF output)
deep_scan: boolEnable deep scan with deobfuscation
fix: boolAuto-fix issues (where possible)
fix_dry_run: boolPreview auto-fix changes without applying them
Trait Implementations§
Source§impl Clone for ScanConfig
impl Clone for ScanConfig
Source§fn clone(&self) -> ScanConfig
fn clone(&self) -> ScanConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more