mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-11 04:47:02 +00:00
![]() ## Summary If a file has a BOM, the import sorter _always_ reports the imports as unsorted. The acute issue is that we detect that the line has leading content (before the imports), which we always consider a violation. Rather than fixing that one site, this PR instead makes `.line_start` BOM-aware. Fixes https://github.com/astral-sh/ruff/issues/6155. |
||
---|---|---|
.. | ||
lib.rs | ||
line_index.rs | ||
locator.rs | ||
newlines.rs |