```ruby
require "rubocop/rake_task"

RuboCop::RakeTask.new(:lint) do |t|
  t.patterns = %w(app bin config Gemfile lib spec)
  t.formatters = %w(clang)
  t.options = %w(--parallel)
end
```

Fix deployment error due to missing rubocop
user
```ruby
unless Rails.env.production?
  require "rubocop/rake_task"

  RuboCop::RakeTask.new(:lint) do |t|
    t.patterns = %w(app bin config Gemfile lib spec)
    t.formatters = %w(clang)
    t.options = %w(--parallel)
  end
end
```
assistant