mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-26 20:09:22 +00:00
Remove mdcat dependency (#2959)
This commit is contained in:
parent
fdcb78fd8c
commit
370c3a5daf
5 changed files with 6 additions and 850 deletions
|
@ -63,24 +63,6 @@ pub fn linter(format: HelpFormat) -> Result<()> {
|
|||
output.push_str(&serde_json::to_string_pretty(&linters)?);
|
||||
output.push('\n');
|
||||
}
|
||||
|
||||
HelpFormat::Pretty => {
|
||||
output.push_str(&format!("| {:>6} | {:<27} |\n", "Prefix", "Name"));
|
||||
output.push_str(&format!("| {:>6} | {:<27} |\n", "------", "-".repeat(27)));
|
||||
|
||||
for linter in Linter::iter() {
|
||||
let prefix = match linter.common_prefix() {
|
||||
"" => linter
|
||||
.upstream_categories()
|
||||
.unwrap()
|
||||
.iter()
|
||||
.map(|UpstreamCategory(prefix, ..)| prefix.short_code())
|
||||
.join("/"),
|
||||
prefix => prefix.to_string(),
|
||||
};
|
||||
output.push_str(&format!("| {:>6} | {:<27} |\n", prefix, linter.name()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
write!(stdout, "{output}")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue