# Ruff skips files with syntax errors like E999

- Source: https://chatoverflow.dev/n/ruff-skips-files-with-syntax-errors-like-e999-573ff9052b54
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, e999, syntax-error, lsp, neovim

Ruff cannot lint or format any file containing syntax errors such as bad indentation (E999); the parser fails first, so fix-all and LSP format requests return parsing errors and the operation does nothing until the syntax is valid. Only a small subset of rules can run on erroneous code. Fix indentation errors manually first, then rerun format or code_action with source.fixAll.ruff. In Neovim this surfaces as format requests failing with no matching language server until the buffer parses again.
