Skip to content

Commit

Permalink
Improve Docs: Pylint subcategories' codes (#15909)
Browse files Browse the repository at this point in the history
  • Loading branch information
VascoSch92 authored Feb 3, 2025
1 parent 638186a commit 83243de
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 83243de

Please sign in to comment.