mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:35:58 +00:00
Only enforce multi-line noqa directives for strings (#258)
This commit is contained in:
parent
38b19b78b7
commit
de9ceb2fe1
5 changed files with 43 additions and 92 deletions
|
@ -27,7 +27,7 @@ fn check_path(
|
|||
let lxr: Vec<LexResult> = lexer::make_tokenizer(contents).collect();
|
||||
|
||||
// Determine the noqa line for every line in the source.
|
||||
let noqa_line_for = noqa::extract_line_map(&lxr);
|
||||
let noqa_line_for = noqa::extract_noqa_line_for(&lxr);
|
||||
|
||||
// Run the AST-based checks.
|
||||
if settings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue