         nil
     end)
 
-    # deprecated
-    deprecated_default_params_module_attribute =
-      if opts[:default_params] do
-        quote do
-          @default_params unquote(opts[:default_params])
-        end
-      end
-
-    # deprecated
-    deprecated_explanation_module_attribute =
-      if opts[:explanation] do
-        quote do
-          @explanation unquote(opts[:explanation])
-        end
-      end
-
-    IO.puts("1")
-
     quote do
       @behaviour Credo.Check
       @before_compile Credo.Check
-
-      # deprecated
-      unquote(deprecated_default_params_module_attribute)
-      unquote(deprecated_explanation_module_attribute)
 
       alias Credo.Check
       alias Credo.Check.Params

        )
      end

      def params_defaults_fallback do
        # deprecated - remove module attribute
        unquote(opts[:default_params])
      end

      def run_on_all? do
        unquote(run_on_all_body(opts[:run_on_all]))
      end
    end
  end

  @doc false
  defmacro __before_compile__(env) do
    quote do
      def params_defaults do
        # deprecated - remove module attribute
        unquote(deprecated_function_body_for_default_params(env))
      end

      def params_names do
        Keyword.keys(params_defaults())
      end

      defp explanation_config do
        # deprecated - remove module attribute
        unquote(deprecated_function_body_for_explanation(env))
      end

      def explanation do
        # deprecated - remove module attribute
        Check.explanation_for(explanation_config(), :check)
      end

      def explanation_for_params do
        # deprecated - remove module attribute
        Check.explanation_for(explanation_config(), :params) || []
      end
    end
  end

  # deprecated
  defp deprecated_function_body_for_default_params(env) do
    default_params = Module.get_attribute(env.module, :default_params)

    if is_nil(default_params) do
      quote do
        __default_params__()
      end
    else
      quote do
        @default_params
      end
    end
  end

  # deprecated
  defp deprecated_function_body_for_explanation(env) do
    explanation = Module.get_attribute(env.module, :explanation)

    if is_nil(explanation) do
      quote do
        __explanation__()
      end
    else
      quote do
        @explanation
      end
    end
  end
