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 c54d4ce commit d3e4234
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 d3e4234

Please sign in to comment.