Showing 5 of 5 total issues
Duplicate code found in /code/test/gateways/trexle_test.exs:137 (mass: 40). Open
Open
Bypass.expect_once(bypass, "POST", "/api/v1/charges/#{@valid_token}/refunds", fn conn ->
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
name |> String.split() |> Enum.map(&String.capitalize(&1)) |> Enum.join("")
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
defp expand_params(params, action_type) do
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Function is too complex (CC is 14, max is 9).
Function body is nested too deep (max depth is 2, was 3). Open
Open
if valid_currency?(v),
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Function body is nested too deep (max depth is 2, was 3).
There should be no calls to IO.inspect/1. Open
Open
IO.inspect(body)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
There should be no calls to IO.inspect/1.