Skip to main content

load_rule_dir

Function load_rule_dir 

Source
pub fn load_rule_dir(dir: impl AsRef<Path>) -> Result<Vec<Rule>, RulesError>
Expand description

Load every .toml rule directly under dir, sorted by filename for a deterministic order. Non-.toml files and subdirectories are ignored.