defmodule Credo.CLI.Command.List.Output.Sarif do
  @moduledoc false

  alias Credo.CLI.Output.Formatter.SARIF
  alias Credo.Execution

  def print_before_info(_source_files, _exec), do: nil

  def print_after_info(_source_files, exec, _time_load, _time_run) do
    exec
    |> Execution.get_issues()
    |> SARIF.print_issues(exec)
  end
end
