Credo.Check.run_on_all_source_files

You're seeing just the callback run_on_all_source_files, go back to Credo.Check module for more information.
Link to this callback

run_on_all_source_files(exec, source_files, params)

View Source

Specs

run_on_all_source_files(
  exec :: Credo.Execution.t(),
  source_files :: [Credo.SourceFile.t()],
  params :: Keyword.t()
) :: :ok

Runs the current check on all source_files by calling run_on_source_file/3.

If you are developing a check that has to run on all source files, you can overwrite run_on_all_source_files/3:

defmodule MyCheck do
  use Credo.Check

  def run_on_all_source_files(exec, source_files, params) do
    issues =
      source_files
      |> do_something_crazy()
      |> do_something_crazier()

    append_issues_and_timings(exec, issues)

    :ok
  end
end

Check out Credo's checks from the consistency category for examples of these kinds of checks.