Releases: adobe/elixir-styler
Releases · adobe/elixir-styler
v0.9.2
v0.9.1
The boolean conditionals edition!
Improvements
- auto-fix
Credo.Check.Refactor.CondStatements
(detects any truthy atom, not justtrue
) - if/unless rewrites:
Credo.Check.Refactor.NegatedConditionsWithElse
Credo.Check.Refactor.NegatedConditionsInUnless
Credo.Check.Refactor.UnlessWithElse
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)