rubygems/rubygems.org

View on GitHub
lib/tasks/rubocop.rake

Summary

Maintainability
Test Coverage
begin
  require "rubocop/rake_task"
rescue LoadError # rubocop:disable Lint/SuppressedException
else
  Rake::Task[:rubocop].clear if Rake::Task.task_defined?(:rubocop)
  desc "Execute rubocop"
  RuboCop::RakeTask.new(:rubocop) do |task|
    task.options = ["--display-cop-names", "--display-style-guide"]
    task.fail_on_error = true
  end
end