aviabird/gringotts

View on GitHub

Showing 5 of 5 total issues

Duplicate code found in /code/test/gateways/trexle_test.exs:137 (mass: 40).
Open

      Bypass.expect_once(bypass, "POST", "/api/v1/charges/#{@valid_token}/refunds", fn conn ->
Severity: Blocker
Found in test/gateways/trexle_test.exs by credo

Duplicate code found in /code/test/gateways/trexle_test.exs:137 (mass: 40).

Enum.map_join/3 is more efficient than Enum.map/2 |> Enum.join/2
Open

      name |> String.split() |> Enum.map(&String.capitalize(&1)) |> Enum.join("")
Severity: Critical
Found in lib/mix/new.ex by credo

Enum.map_join/3 is more efficient than Enum.map/2 |> Enum.join/2

Function is too complex (CC is 14, max is 9).
Open

  defp expand_params(params, action_type) do
Severity: Major
Found in lib/gringotts/gateways/monei.ex by credo

Function is too complex (CC is 14, max is 9).

Function body is nested too deep (max depth is 2, was 3).
Open

          if valid_currency?(v),
Severity: Major
Found in lib/gringotts/gateways/monei.ex by credo

Function body is nested too deep (max depth is 2, was 3).

There should be no calls to IO.inspect/1.
Open

        IO.inspect(body)
Severity: Critical
Found in lib/gringotts/gateways/paymill.ex by credo

There should be no calls to IO.inspect/1.

Severity
Category
Status
Source
Language