Skip to content

Releases: adobe/elixir-styler

v0.7.12

19 Jun 15:41
Compare
Choose a tag to compare

Fixes

  • fix 0-arity paren removal on metaprogramming creating uncompilable code (h/t @simonprev)

v0.7.11

23 May 02:57
Compare
Choose a tag to compare

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

22 May 19:47
Compare
Choose a tag to compare

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

18 May 00:27
Compare
Choose a tag to compare

Fixes

  • Fix crash trying to remove 0-arity parens from metaprogramming ala def unquote(foo)(), do: ...

v0.7.7

16 May 19:28
Compare
Choose a tag to compare

Improvements

  • Rewrite Enum.into/2,3 into Map.new/1,2 when the collectable is %{} or Map.new/0

v0.7.6

16 May 18:38
Compare
Choose a tag to compare

Fixes

v0.7.5

15 May 02:29
Compare
Choose a tag to compare

Fixes

  • Fix bug from ParameterPatternMatching implementation that re-ordered pattern matching in cond do -> clauses

v0.7.4

14 May 23:49
Compare
Choose a tag to compare

Features

  • Implement Credo.Check.Readability.PreferImplicitTry
  • Implement Credo.Check.Consistency.ParameterPatternMatching for def|defp|fn|case

v0.7.3

14 May 18:53
Compare
Choose a tag to compare

Features

  • Remove parens from 0-arity function definitions (Credo.Check.Readability.ParenthesesOnZeroArityDefs)

v0.7.2

10 May 23:18
Compare
Choose a tag to compare

Features

  • Rewrite case true _ to if statements as well