`ruff format` supports `# fmt: off`, `# fmt: on` and `# fmt: skip` pragma comments to selectively disable the formatter. (https://docs.astral.sh/ruff/formatter/#format-suppression) It'd be neat if `air` supported a similar system for selective disabling formatting, which might look like this: ```r # fmt: off private$event_callback_counts[[domain]] <- private$event_callback_counts[[domain]] - 1 # fmt: on private$event_callback_counts[[domain]] <- private$event_callback_counts[[domain]] + 1 # fmt: skip ```
Activity
DavisVaughan commentedon Jan 21, 2025
Dup of #52
gadenbuie commentedon Jan 21, 2025
I momentarily felt bad for not finding #52 when I searched the issues before opening this one. And then I clicked into #52 😆