ruff/crates/ruff_cli/tests
Charlie Marsh cee09765ef
Use transformed source code for diagnostic locations (#9408)
## Summary

After we apply fixes, the source code might be transformed. And yet,
we're using the _unmodified_ source code to compute locations in some
cases (e.g., for displaying parse errors, or Jupyter Notebook cells).
This can lead to subtle errors in reporting, or even panics. This PR
modifies the linter to use the _transformed_ source code for such
computations.

Closes https://github.com/astral-sh/ruff/issues/9407.
2024-01-06 10:22:34 -05:00
..
snapshots Add cell field to JSON output format (#7664) 2023-10-13 01:06:02 +00:00
format.rs Add paths to toml parse errors (#9358) 2024-01-02 11:56:51 -05:00
integration_test.rs Use transformed source code for diagnostic locations (#9408) 2024-01-06 10:22:34 -05:00
lint.rs Stop at the first resolved parent configuration (#8864) 2023-11-29 04:21:07 +00:00
resolve_files.rs Update ruff check and ruff format to default to the current directory (#8791) 2023-11-21 11:34:21 -06:00