Current section
13 Versions
Jump to
Current section
13 Versions
Compare versions
3
files changed
+4
additions
-4
deletions
| @@ -1,6 +1,6 @@ | |
| 1 1 | {<<"links">>,[{<<"GitHub">>,<<"https://github.com/joeyates/green">>}]}. |
| 2 2 | {<<"name">>,<<"green">>}. |
| 3 | - {<<"version">>,<<"0.1.5">>}. |
| 3 | + {<<"version">>,<<"0.1.6">>}. |
| 4 4 | {<<"description">>,<<"Format Elixir code according to a consistent style">>}. |
| 5 5 | {<<"elixir">>,<<"~> 1.14">>}. |
| 6 6 | {<<"app">>,<<"green">>}. |
| @@ -256,7 +256,7 @@ defmodule Green.Rules.Linting.PreferPipelines do | |
| 256 256 | defp wrap_bare_keyword([first | _rest] = term) do |
| 257 257 | if Enum.all?(term, &keyword_value?/1) do |
| 258 258 | # Re-use the context of the first keyword |
| 259 | - {{:__block__, ctx1, [_name]}, {:__block__, _ctx2, [_value]}} = first |
| 259 | + {{:__block__, ctx1, [_name]}, _second} = first |
| 260 260 | # TODO: adjust context, e.g. the value of `:closing` |
| 261 261 | [{:__block__, ctx1, [term]}] |
| 262 262 | else |
| @@ -266,7 +266,7 @@ defmodule Green.Rules.Linting.PreferPipelines do | |
| 266 266 | |
| 267 267 | defp wrap_bare_keyword(term), do: term |
| 268 268 | |
| 269 | - defp keyword_value?({{:__block__, ctx1, [_name]}, {:__block__, _ctx2, [_value]}}) do |
| 269 | + defp keyword_value?({{:__block__, ctx1, [_name]}, _second}) do |
| 270 270 | ctx1[:format] == :keyword |
| 271 271 | end |
| @@ -1,7 +1,7 @@ | |
| 1 1 | defmodule Green.MixProject do |
| 2 2 | use Mix.Project |
| 3 3 | |
| 4 | - @version "0.1.5" |
| 4 | + @version "0.1.6" |
| 5 5 | |
| 6 6 | def project do |
| 7 7 | [ |