Skip to main content

set_enabled

Function set_enabled 

Source
pub fn set_enabled(
    path: &Path,
    name: &str,
    enabled: bool,
) -> Result<(), RulesError>
Expand description

Turns a rule on or off, keeping the file’s comments and layout.