Rename RuleGroup::Unspecified to Stable (#7991)

Should help with #7989 and seems more accurate for our new model
This commit is contained in:
Zanie Blue 2023-10-16 14:53:27 -05:00 committed by GitHub
parent 4c2c9bf7e0
commit 4113d65836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 654 additions and 655 deletions

View file

@ -140,8 +140,7 @@ pub(crate) fn {rule_name_snake}(checker: &mut Checker) {{}}
variant = pascal_case(linter)
rule = f"""rules::{linter.split(" ")[0]}::rules::{name}"""
lines.append(
" " * 8
+ f"""({variant}, "{code}") => (RuleGroup::Unspecified, {rule}),\n""",
" " * 8 + f"""({variant}, "{code}") => (RuleGroup::Stable, {rule}),\n""",
)
lines.sort()
text += "".join(lines)