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 4cc6d61 commit 34f19b1Copy full SHA for 34f19b1
crates/ruff_linter/src/linter.rs
@@ -140,7 +140,7 @@ pub fn check_path(
140
let comment_ranges = indexer.comment_ranges();
141
142
// Gather all ruff:directive suppressions
143
- let _suppressions = Suppressions::load(locator.contents(), comment_ranges);
+ let _suppressions = Suppressions::from_tokens(locator.contents(), tokens);
144
145
// Collect doc lines. This requires a rare mix of tokens (for comments) and AST
146
// (for docstrings), which demands special-casing at this level.
0 commit comments