mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Only include rule links once in README (#2678)
This commit is contained in:
parent
31027497c6
commit
5a07c9f57c
2 changed files with 10 additions and 12 deletions
|
@ -36,10 +36,8 @@ fn generate_table(table_out: &mut String, rules: impl IntoIterator<Item = Rule>)
|
|||
|
||||
if rule.explanation().is_some() {
|
||||
table_out.push_str(&format!(
|
||||
"| [{}]({}/{}.md) | [{}]({}/{}.md) | {} | {} |",
|
||||
"| {} | [{}]({}/{}.md) | {} | {} |",
|
||||
rule.code(),
|
||||
URL_PREFIX,
|
||||
rule.as_ref(),
|
||||
rule.as_ref(),
|
||||
URL_PREFIX,
|
||||
rule.as_ref(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue