       origin: origin,
       filename: filename,
       config_name_found?: config_name_found?,
-      checks: checks_from_data(data),
+      checks: checks_from_data(data, filename),
       color: data[:color],
       files: files_from_data(data, dir),
       parse_timeout: data[:parse_timeout],

    end
  end

  defp checks_from_data(data) do
    case data[:checks] do
      checks when is_list(checks) -> checks
      %{} = checks -> checks
      _ -> []
    end
  end


  @default_parse_timeout 5000
  @default_strict false
  @default_color true
  @valid_checks_keys ~w(enabled disabled extra)a

  alias Credo.Execution

