Skip to main content

load_rule

Function load_rule 

Source
pub fn load_rule(path: &Path) -> Result<CodemodRule>
Expand description

Load a codemod rule from a YAML file.

The rule is deserialized and then validated. Invalid rules are rejected with a CodemodError::Rule.

ยงErrors