Releases: adobe/elixir-styler
Releases · adobe/elixir-styler
v0.9.0
Improvements
- Added right-hand-pattern-matching rewrites to
for
andwith
left arrow expressions<-
example:with map = %{} <- foo()
=>with %{} = map <- foo
with
statement rewrites, solving the following credo rulesCredo.Check.Readability.WithSingleClause
Credo.Check.Refactor.RedundantWithClauseResult
Credo.Check.Refactor.WithClauses
v0.8.4
v0.8.3
Improvements
- DateTime rewrites (#62, ht @milmazz)
DateTime.compare
=>DateTime.{before/after}
(elixir >= 1.15)Timex.now
=>DateTime.utc_now
Timex.today
=>Date.utc_today
Fixes
- Pipes: add
===
,!==
,and
,or
,!=
to list of valid infix operators (#64, ht @ugurtepecik)
v0.8.2
v0.8.1
v0.8.0
v0.7.14
v0.7.13
v0.7.12
Fixes
- fix 0-arity paren removal on metaprogramming creating uncompilable code (h/t @simonprev)