Welcome to mirror list, hosted at ThFree Co, Russian Federation.

rubocop.rake « tasks « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a4147ae1bba591cb3c045643f7e66bb482b324b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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