def lint(plugin)
      hooks = before_hooks(plugin) + around_hooks(plugin) + after_hooks(plugin)

      hooks.each do |hook|
        if hook.to_s.end_with?("perform")
          raise LintError, "#{plugin}.#{hook} is not namespaced"
        end
      end

      failure_hooks(plugin).each do |hook|
        if hook.to_s.end_with?("failure")
          raise LintError, "#{plugin}.#{hook} is not namespaced"
        end
      end
    end
def lint(plugin)
      hooks = before_hooks(plugin) + around_hooks(plugin) + after_hooks(plugin)

      hooks.each do |hook|
        if hook.to_s.end_with?("perform")
          raise LintError, "#{plugin}.#{hook} is not namespaced"
        end
      end

      failure_hooks(plugin).each do |hook|
        if hook.to_s.end_with?("failure")
          raise LintError, "#{plugin}.#{hook} is not namespaced"
        end
      end
    end
Ensure that your plugin conforms to good hook naming conventions.

   Resque::Plugin.lint(MyResquePlugin)