Re: [elixir-core:10880] [Proposal] Exclude files from .formatter.exs

2022-04-26 Thread Jon Rowe
I wanted this feature recently as with the addition of the heex formatter I wanted to format most of an app, but not one file temporarily due to a whitespace wrapping issue (thats getting addressed :)) but still wanted the rest of the app formatted. So I'm in favour. Cheers Jon On Tue, 26 Apr

[elixir-core:10880] [Proposal] Exclude files from .formatter.exs

2022-04-26 Thread Ignacio Aguirrezabal
Hello everyone, Currently, the only way to exclude files from the formatter is to do something like this: [ inputs: Enum.flat_map( ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], &Path.wildcard(&1, match_dot: true) ) -- Path.wildcard("test/example_app

[elixir-core:10879] Re: [Proposal] GenServer response with exception control flow

2022-04-26 Thread Ben Wilson
> I'm sure there is the opinion that this is anti-pattern Yup. Side stepping this a bit though and getting to something deeper: This does not seem like it needs to be part of the standard library. You could make a library called GenServerWithExceptions or something and put it up on hex, and see