Skip to main content

is_correlatable_command

Function is_correlatable_command 

Source
pub fn is_correlatable_command(command: &str) -> bool
Expand description

True for the build/test/dependency/runtime command families this module can correlate (mirrors the per-tool gates in detect_error_pattern). The shell-layer hook uses it to skip all disk work for ordinary commands (ls, cat, echo, …) — a false positive only costs a cheap store load, never a wrong gotcha (detect_error_pattern still gates the real signal).