Skip to content

Commit

Permalink
Fix sub-category for PL
Browse files Browse the repository at this point in the history
  • Loading branch information
VascoSch92 committed Feb 3, 2025
1 parent d082c1b commit f3b918d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/ruff_dev/src/generate_rules_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,14 @@ pub(crate) fn generate() -> String {
for (opt, rules) in rules_by_upstream_category {
if opt.is_some() {
let UpstreamCategoryAndPrefix { category, prefix } = opt.unwrap();
table_out.push_str(&format!("#### {category} ({prefix})"));
match codes_csv.as_str() {
"PL" => {
table_out.push_str(&format!("#### {category} ({codes_csv}{prefix})"));
}
_ => {
table_out.push_str(&format!("#### {category} ({prefix})"));
}
}
}
table_out.push('\n');
table_out.push('\n');
Expand Down

0 comments on commit f3b918d

Please sign in to comment.