Drop unused rubocop tasks
This commit is contained in:
parent
86b2bd426a
commit
614bdf03a3
1 changed files with 0 additions and 17 deletions
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue