module Resque::Plugin

def lint(plugin)

Resque::Plugin.lint(MyResquePlugin)

Ensure that your plugin conforms to good hook naming conventions.
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