surgeventures/surgex

View on GitHub

Showing 7 of 7 total issues

Avoid apply/2 and apply/3 when the number of arguments is known
Open

      apply(parser_module, :call, [input | parser_args])
Severity: Minor
Found in lib/surgex/parser/parser.ex by credo

Avoid apply/2 and apply/3 when the number of arguments is known

Avoid apply/2 and apply/3 when the number of arguments is known
Open

          apply(repo, :query!, [sql, []])

Avoid apply/2 and apply/3 when the number of arguments is known

Avoid apply/2 and apply/3 when the number of arguments is known
Open

          apply(source_repo, :transaction, [

Avoid apply/2 and apply/3 when the number of arguments is known

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

          |> Enum.join(", ")

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

Avoid apply/2 and apply/3 when the number of arguments is known
Open

        %{rows: [[upserts, deletions]]} = apply(repo, :query!, [sql, params])
Severity: Minor
Found in lib/surgex/data_pipe/table_sync.ex by credo

Avoid apply/2 and apply/3 when the number of arguments is known

Avoid apply/2 and apply/3 when the number of arguments is known
Open

          apply(repo, :delete_all, [table])

Avoid apply/2 and apply/3 when the number of arguments is known

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

           |> Enum.join())
Severity: Critical
Found in lib/surgex/data_pipe/table_sync.ex by credo

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

Severity
Category
Status
Source
Language