freedom_formatter
freedom_formatter copied to clipboard
Problem with nonempty list typespecs
Hi there! Thanks for the great library. We've used it happily at Felt for a couple years now. ☺️
I'm running into an issue with Elixir 1.17, where I have a typespec like this:
@spec join([String.t(), ...]) :: String.t()
With the trailing_comma: true
and local_pipe_with_parens: true
settings, it gets reformatted to:
@spec join([String.t(), ...()]) :: String.t()
(Note the new ()
following the ...
)
This breaks compilation.