diff --git a/crates/ruff/src/rule_selector.rs b/crates/ruff/src/rule_selector.rs index 6d775e94cbd75..0837d49ffdf13 100644 --- a/crates/ruff/src/rule_selector.rs +++ b/crates/ruff/src/rule_selector.rs @@ -206,7 +206,7 @@ impl RuleSelector { self.all_rules().filter(move |rule| { // Always include rules that are not in preview or the nursery !(rule.is_preview() || rule.is_nursery()) - // Backwards compatibility allows selection of nursery rules by exact code or dedicated grooup + // Backwards compatibility allows selection of nursery rules by exact code or dedicated group || (matches!(self, RuleSelector::Rule { .. }) || matches!(self, RuleSelector::Nursery { .. }) && rule.is_nursery()) // Enabling preview includes all preview or nursery rules || preview.is_enabled()