Skip to main content

Module rule

Module rule 

Source
Expand description

Codemod rule management — loading, saving, and validation.

A rule is a self-contained description of a code transformation that can be serialized to YAML and shared across projects. It bundles a before/after pattern with metadata (name, description, language) and scanning configuration (include/exclude globs).

Re-exports§

pub use builtin::BuiltinRules;
pub use schema::CodemodRule;
pub use schema::RuleConfig;

Modules§

builtin
Built-in codemod rule templates.
schema
Rule schema definitions for serialization / deserialization.

Functions§

load_rule
Load a codemod rule from a YAML file.
save_rule
Save a codemod rule to a YAML file.