defmodule Credo.Execution.Task.RequireRequires do
  use Credo.Execution.Task

  alias Credo.Sources

  def call(%Execution{requires: requires} = exec) do
    requires
    |> Sources.find
    |> Enum.each(&Code.require_file/1)

    exec
  end
end

defmodule Credo.Execution.Task.RequireRequires do
  use Credo.Execution.Task

  alias Credo.Sources

  def call(%Execution{requires: requires} = exec, _opts) do
    requires
    |> Sources.find
    |> Enum.each(&Code.require_file/1)

    exec
  end
end

Fix loading of custom checks
Fix loading of custom checks

This fixes the loading of the RequireRequires task.

Without the 2nd param, the task is not executed and loading of custom checks fails.
rrrene/credo,rrrene/credo