Releases: adobe/elixir-styler
Releases · adobe/elixir-styler
v0.7.5
15 May 02:29
Compare
Sorry, something went wrong.
No results found
Fixes
Fix bug from ParameterPatternMatching
implementation that re-ordered pattern matching in cond do
->
clauses
v0.7.4
14 May 23:49
Compare
Sorry, something went wrong.
No results found
Features
Implement Credo.Check.Readability.PreferImplicitTry
Implement Credo.Check.Consistency.ParameterPatternMatching
for def|defp|fn|case
v0.7.3
14 May 18:53
Compare
Sorry, something went wrong.
No results found
Features
Remove parens from 0-arity function definitions (Credo.Check.Readability.ParenthesesOnZeroArityDefs
)
v0.7.2
10 May 23:18
Compare
Sorry, something went wrong.
No results found
Features
Rewrite case true _
to if
statements as well
v0.7.1
10 May 23:18
Compare
Sorry, something went wrong.
No results found
Features
Rewrite case ... true / else ->
to be if
statements
v0.7.0
09 May 21:21
Compare
Sorry, something went wrong.
No results found
Features
Enum.reverse/2
optimizations
Rewrite Enum.reverse(foo) ++ bar
to Enum.reverse(foo, bar)
Rewrite a |> Enum.reverse() |> Enum.concat(enum)
to Enum.reverse(a, enum)
Rewrite |> (& ...).()
to |> then(& ...)
(Credo.Check.Readability.PipeIntoAnonymousFunctions
)
Add parens to 1-arity pipe functions (Credo.Check.Readability.OneArityFunctionInPipe
)
v0.6.1
07 May 21:13
Compare
Sorry, something went wrong.
No results found
Improvements
Better error handling: mix format
will still format files if a style fails
Fixes
mix style
: only run on .ex
and .exs
files
ModuleDirectives
: now expands alias __MODULE__.{A, B}
(h/t @adriankumpf )
v0.6.0
04 May 21:08
Compare
Sorry, something went wrong.
No results found
Features
mix style
: brought back to life for folks who want to incrementally introduce Styler
Fixes
Styler.Style.Pipes
:
include x in y
and ^foo
(for ecto) as a valid pipe starts
work even harder to keep rewrites on one line
v0.5.2
04 May 16:28
Compare
Sorry, something went wrong.
No results found
Fixes
ModuleDirectives
: hande dynamic module names, like var = Foo; defmodule var, do: ...
Pipes
: include Ecto.Query.from
and Query.from
as valid pipe starts (h/t @Nezteb )
v0.5.1
26 Apr 14:16
Compare
Sorry, something went wrong.
No results found
Improvements
Optimized styling just the littlest bit