mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-08 17:41:31 +00:00
refactor: Add Copy implementation to Rule (#3556)
This commit is contained in:
parent
aa51ecedc5
commit
eff84442bc
59 changed files with 835 additions and 965 deletions
|
@ -23,7 +23,7 @@ fn generate_table(table_out: &mut String, rules: impl IntoIterator<Item = Rule>,
|
|||
table_out.push_str(&format!(
|
||||
"| {}{} | {} | {} | {} |",
|
||||
linter.common_prefix(),
|
||||
linter.code_for_rule(&rule).unwrap(),
|
||||
linter.code_for_rule(rule).unwrap(),
|
||||
rule.explanation()
|
||||
.is_some()
|
||||
.then_some(format_args!("[{rule_name}](rules/{rule_name}.md)"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue