mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 04:18:05 +00:00
many-to-one 4/9: Rename define_rule_mapping! to register_rules!
Currently the define_rule_mapping! macro generates both the Rule enum as well as the RuleCodePrefix enum and the mapping between the two. After this commit series the macro will only generate the Rule enum and the RuleCodePrefix enum and the mapping will be generated by a new map_codes proc macro, so we rename the macro now to fit its new purpose.
This commit is contained in:
parent
1b8d2df3bf
commit
65a3461519
4 changed files with 12 additions and 12 deletions
|
|
@ -119,7 +119,7 @@ pub fn {rule_name_snake}(checker: &mut Checker) {{}}
|
|||
if has_written:
|
||||
continue
|
||||
|
||||
if line.startswith("ruff_macros::define_rule_mapping!"):
|
||||
if line.startswith("ruff_macros::register_rules!"):
|
||||
seen_macro = True
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue