We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a227e commit 52a54a9Copy full SHA for 52a54a9
crates/ruff_linter/src/linter.rs
@@ -439,7 +439,7 @@ pub fn check_path(
439
if !settings.fix_safety.is_empty() {
440
for diagnostic in &mut diagnostics {
441
if let Some(fix) = diagnostic.fix.take() {
442
- if let Ok(rule) = diagnostic.name().parse() {
+ if let Some(rule) = diagnostic.noqa_code().and_then(|code| code.rule()) {
443
let fixed_applicability = settings
444
.fix_safety
445
.resolve_applicability(rule, fix.applicability());
0 commit comments