Skip to content

Commit

Permalink
Properly extract the noqa directives when linting
Browse files Browse the repository at this point in the history
  • Loading branch information
snowsignal committed May 11, 2024
1 parent e954e4d commit b321a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_server/src/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub(crate) fn check(
let indexer = Indexer::from_tokens(&tokens, &locator);

// Extract the `# noqa` and `# isort: skip` directives from the source.
let directives = extract_directives(&tokens, Flags::empty(), &locator, &indexer);
let directives = extract_directives(&tokens, Flags::all(), &locator, &indexer);

// Generate checks.
let LinterResult {
Expand Down

0 comments on commit b321a3f

Please sign in to comment.