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 c814520 commit b47daffCopy full SHA for b47daff
crates/ruff/src/cache.rs
@@ -442,7 +442,7 @@ impl LintCacheData {
442
// Parse the kebab-case rule name into a `Rule`. This will fail for syntax errors, so
443
// this also serves to filter them out, but we shouldn't be caching files with syntax
444
// errors anyway.
445
- .filter_map(|msg| Some((msg.noqa_code().and_then(|code| code.rule())?, msg)))
+ .filter_map(|msg| Some((msg.name().parse().ok()?, msg)))
446
.map(|(rule, msg)| {
447
// Make sure that all message use the same source file.
448
assert_eq!(
0 commit comments