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:
Martin Fischer 2023-01-20 03:51:17 +01:00 committed by Charlie Marsh
parent 1b8d2df3bf
commit 65a3461519
4 changed files with 12 additions and 12 deletions

View file

@ -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