I've stumbled into `fmt` vs `fix` and some gigant...
# development
l
I've stumbled into
fmt
vs
fix
and some gigantic old slack threads, and want to be sure I have it straight: Is it safe to say that everything in
fmt
has been merged into
fix
and
fix
is the verb to use moving forward? I'm gleaning that from
FmtTargetsRequest <: FixTargetsRequest
and the fact that Ruff was added as a Fixer but older but equivalent tools like black were added as Formatters. Reason I am asking: if I am playing around with tooling to more easily create linters/fmt/fixers, is it necessary to support creating a `fmt`er and a
fix
er separately or can we just support
lint
and
fix
?
b
fmt
is for syntactic changes.
fix
is for all changes (syntactic and semantic)
The razor is "is this safe to do on save, with devs saving often?". E.g. a fixer might strip an import, but a formatter shouldnt. Really almost all invocations should use
fix
, but some poeple might be using
--loop fmt
so it'd be innapropriate to get rid of
fmt
altogether.
I wish we just did
fix
, but that didn't fly
l
Ah thanks, that helps.