Compare commits

...

2 Commits

Author SHA1 Message Date
Brent Westbrook
821de4c169 Stabilize invalid-rule-code (RUF102)
Docs and tests look good
2025-09-04 09:35:32 -04:00
Brent Westbrook
43942c7617 TODO drop this empty commit 2025-09-04 09:12:30 -04:00
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
use std::io::Write;
use std::process::ExitCode;
use clap::Parser;

View File

@@ -1053,7 +1053,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
(Ruff, "064") => (RuleGroup::Preview, rules::ruff::rules::NonOctalPermissions),
(Ruff, "100") => (RuleGroup::Stable, rules::ruff::rules::UnusedNOQA),
(Ruff, "101") => (RuleGroup::Stable, rules::ruff::rules::RedirectedNOQA),
(Ruff, "102") => (RuleGroup::Preview, rules::ruff::rules::InvalidRuleCode),
(Ruff, "102") => (RuleGroup::Stable, rules::ruff::rules::InvalidRuleCode),
(Ruff, "200") => (RuleGroup::Stable, rules::ruff::rules::InvalidPyprojectToml),
#[cfg(any(feature = "test-rules", test))]