zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

run_checks.ex (351B)


      1 defmodule Credo.CLI.Task.RunChecks do
      2   @moduledoc false
      3 
      4   use Credo.Execution.Task
      5 
      6   alias Credo.Check.Runner
      7 
      8   def call(exec, _opts \\ []) do
      9     source_files = get_source_files(exec)
     10 
     11     {time_run, :ok} =
     12       :timer.tc(fn ->
     13         Runner.run(source_files, exec)
     14       end)
     15 
     16     put_assign(exec, "credo.time.run_checks", time_run)
     17   end
     18 end