Skip to content

Commit

Permalink
Handle elixir version deprecations in credo
Browse files Browse the repository at this point in the history
  • Loading branch information
christhekeele committed Jun 20, 2024
1 parent 986860d commit a16d7c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,11 @@ defmodule Erlex.MixProject do
Version.match?(@elixir_version, "< 1.10.0") ->
[{:credo, "< 1.7.0", only: @dev_envs, runtime: false}]

Version.match?(@elixir_version, "< 1.13.0") ->
[{:credo, "< 1.7.7", only: @dev_envs, runtime: false}]

true ->
[{:credo, ">= 1.7.0", only: @dev_envs, runtime: false}]
[{:credo, ">= 1.7.7", only: @dev_envs, runtime: false}]
end
end

Expand Down

0 comments on commit a16d7c7

Please sign in to comment.