debian-mirror-gitlab/lib/tasks/rubocop.rake
2021-11-11 11:23:49 +05:30

24 lines
444 B
Ruby

# frozen_string_literal: true
unless Rails.env.production?
require 'rubocop/rake_task'
RuboCop::RakeTask.new
namespace :rubocop do
namespace :todo do
desc 'Generate RuboCop todos'
task :generate do
require 'rubocop'
options = %w[
--auto-gen-config
--auto-gen-only-exclude
--exclude-limit=100000
]
RuboCop::CLI.new.run(options)
end
end
end
end