Releases: adobe/elixir-styler
Releases · adobe/elixir-styler
v0.7.1
v0.7.0
Features
Enum.reverse/2
optimizations- Rewrite
Enum.reverse(foo) ++ bar
toEnum.reverse(foo, bar)
- Rewrite
a |> Enum.reverse() |> Enum.concat(enum)
toEnum.reverse(a, enum)
- Rewrite
- Rewrite
|> (& ...).()
to|> then(& ...)
(Credo.Check.Readability.PipeIntoAnonymousFunctions
) - Add parens to 1-arity pipe functions (
Credo.Check.Readability.OneArityFunctionInPipe
)
v0.6.1
Improvements
- Better error handling:
mix format
will still format files if a style fails
Fixes
mix style
: only run on.ex
and.exs
filesModuleDirectives
: now expandsalias __MODULE__.{A, B}
(h/t @adriankumpf)
v0.6.0
v0.5.2
v0.5.1
v0.5.0
v0.4.1
v0.4.0
Improvements
Pipes
rewrites some two-step processes into one, fixing these credo issues in pipe chains:Credo.Check.Refactor.FilterCount
Credo.Check.Refactor.MapJoin
Credo.Check.Refactor.MapInto
Fixes
ModuleDirectives
handles even weirder places to hide your aliases (anonymous functions, in this case)Pipes
tries even harder to keep single-pipe rewrites of invocations on one line