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 2fe49fb commit e9de061Copy full SHA for e9de061
crates/ruff_linter/src/rules/ruff/rules/invalid_rule_code.rs
@@ -63,8 +63,8 @@ pub(crate) fn invalid_noqa_code(
63
64
for code in directive.iter() {
65
let code_str = code.as_str();
66
- if external.iter().any(|ext| code_str.starts_with(ext))
67
- || Rule::from_code(code.as_str()).is_ok()
+ if Rule::from_code(code.as_str()).is_ok()
+ || external.iter().any(|ext| code_str.starts_with(ext))
68
{
69
all_invalid = false;
70
} else {
0 commit comments