Credo.Execution.halt

You're seeing just the function halt, go back to Credo.Execution module for more information.

Halts further execution of the pipeline meaning all subsequent steps are skipped.

The error callback is called for the current Task.

defmodule FooTask do
  use Credo.Execution.Task

  def call(exec) do
    Execution.halt(exec)
  end

  def error(exec) do
    IO.puts("Execution has been halted!")

    exec
  end
end
Link to this function

halt(exec, halt_message)

View Source

Halts further execution of the pipeline using the given halt_message.

The error callback is called for the current Task. If the callback is not implemented, Credo outputs the given halt_message.

defmodule FooTask do
  use Credo.Execution.Task

  def call(exec) do
    Execution.halt(exec, "Execution has been halted!")
  end
end