mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 05:25:17 +00:00
Avoid noqa removal upon unhandled syntax errors (#2864)
This commit is contained in:
parent
3c03e2cb2e
commit
7627e840c9
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ pub fn check_path(
|
|||
indexer.commented_lines(),
|
||||
&directives.noqa_line_for,
|
||||
settings,
|
||||
autofix,
|
||||
error.as_ref().map_or(autofix, |_| flags::Autofix::Disabled),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue