mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 20:42:10 +00:00
![]() ## Summary Extends the pragma comment detection in the formatter to support case-insensitive `noqa` (as supposed by Ruff), plus a variety of other pragmas (`isort:`, `nosec`, etc.). Also extracts the detection out into the trivia crate so that we can reuse it in the linter (see: https://github.com/astral-sh/ruff/issues/7471). ## Test Plan `cargo test` |
||
---|---|---|
.. | ||
snapshots | ||
comment_ranges.rs | ||
cursor.rs | ||
lib.rs | ||
pragmas.rs | ||
textwrap.rs | ||
tokenizer.rs | ||
whitespace.rs |