         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

        nil
    end)

    deprecated_default_params_module_attribute =
      if opts[:default_params] do
        quote do

      end

      def explanation do
        # deprecated - remove module attribute
        Check.explanation_for(unquote(opts[:explanation]) || @explanation, :check)
      end

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

