Merge pull request #2847 from hennevogel/refactoring/rubocop-tasks

Drop unused rubocop tasks
This commit is contained in:
Henne Vogelsang 2021-08-18 14:43:28 +02:00 committed by GitHub
commit 57d21c23bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,17 +0,0 @@
# frozen_string_literal: true
unless Rails.env.production?
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop) do |task|
task.patterns = []
task.options = ['--display-cop-names']
end
namespace :rubocop do
desc 'Generate .rubocop_todo.yml'
task :auto_gen_config do
sh 'rubocop --display-cop-names --auto-gen-config --auto-gen-only-exclude'
end
end
end