mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 04:19:18 +00:00
Improve Docs: Pylint subcategories' codes (#15909)
This commit is contained in:
parent
638186afbd
commit
83243de93d
1 changed files with 8 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue