defmodule Mix.Tasks.Credo do
  use Mix.Task

  @shortdoc  "Run code analysis (use `--help` for options)"
  @moduledoc @shortdoc

  @doc false
  def run(argv) do
    Credo.start nil, nil

    Credo.CLI.run(argv)
  end
end

defmodule Mix.Tasks.Credo do
  use Mix.Task

  @shortdoc  "Run code analysis (use `--help` for options)"
  @moduledoc @shortdoc

  @doc false
  def run(argv) do
    Credo.CLI.main(argv)
  end
end

Revert "Use `Credo.Cli.run/1` instead of `main/1` in mix-task"
Revert "Use `Credo.Cli.run/1` instead of `main/1` in mix-task"

This reverts commit c5a3d5c2369c8cf62e9696f0bdabad6cafa37478.

rrrene/credo,rrrene/credo