Skip to main content

lint_enabled

Function lint_enabled 

Source
pub fn lint_enabled(env_var: &str) -> Result<bool, String>
Expand description

Returns whether the lint should run based on the given env var.

Defaults to true when the var is unset. Set to 0/false/no/off to disable.