Improve Docs: Pylint subcategories' codes (#15909)

This commit is contained in:
Vasco Schiavo 2025-02-03 13:53:36 +01:00 committed by GitHub
parent 638186afbd
commit 83243de93d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');