diff --git a/crates/ruff/src/commands/linter.rs b/crates/ruff/src/commands/linter.rs index 083102c09c12a..19e7d3df2098e 100644 --- a/crates/ruff/src/commands/linter.rs +++ b/crates/ruff/src/commands/linter.rs @@ -16,6 +16,8 @@ struct LinterInfo { prefix: &'static str, name: &'static str, #[serde(skip_serializing_if = "Option::is_none")] + url: Option<&'static str>, + #[serde(skip_serializing_if = "Option::is_none")] categories: Option>, } @@ -50,6 +52,7 @@ pub(crate) fn linter(format: HelpFormat) -> Result<()> { .map(|linter_info| LinterInfo { prefix: linter_info.common_prefix(), name: linter_info.name(), + url: linter_info.url(), categories: linter_info.upstream_categories().map(|cats| { cats.iter() .map(|c| LinterCategoryInfo {