Releases: adobe/elixir-styler
Releases · adobe/elixir-styler
v0.8.1
Fixes
- ModuleDirectives doesn't mistake variables for directives (#57, h/t @leandrocp)
v0.8.0
Improvements (Bug Fix!?)
- ModuleDirectives no longer throws comments around a file when hoisting directives up (#53)
v0.7.14
Improvements
- rewrite
Logger.warn/1,2
to Logger.warning/1,2
due to Elixir 1.15 deprecation
v0.7.12
Fixes
- fix 0-arity paren removal on metaprogramming creating uncompilable code (h/t @simonprev)
v0.7.11
Fixes
- fix crash from
mix style
running plugins as part of formatting (no longer runs formatter plugins) (@mhanberg)
Improvements
- single-quote charlists are rewritten to use the
~c
sigil ('foo'
-> ~c'foo'
) (h/t @fhunleth)
mix style
warns the user that Styler is primarily meant to be used as a plugin
v0.7.10
Fixes
- fix crash when encountering single-quote charlists (h/t @fhunleth)
Improvements
- single-quote charlists are rewritten to use the
~c
sigil ('foo'
-> ~c'foo'
)
- when encountering
_ = bar ->
, replace it with bar ->
v0.7.8
Fixes
- Fix crash trying to remove 0-arity parens from metaprogramming ala
def unquote(foo)(), do: ...
v0.7.7
Improvements
- Rewrite
Enum.into/2,3
into Map.new/1,2
when the collectable is %{}
or Map.new/0