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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/cop/sidekiq_options_queue.rb')
-rw-r--r--rubocop/cop/sidekiq_options_queue.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/sidekiq_options_queue.rb b/rubocop/cop/sidekiq_options_queue.rb
index 2574a229ec2..3eee59e69fd 100644
--- a/rubocop/cop/sidekiq_options_queue.rb
+++ b/rubocop/cop/sidekiq_options_queue.rb
@@ -3,7 +3,7 @@
module RuboCop
module Cop
# Cop that prevents manually setting a queue in Sidekiq workers.
- class SidekiqOptionsQueue < RuboCop::Cop::Cop
+ class SidekiqOptionsQueue < RuboCop::Cop::Base
MSG = 'Do not manually set a queue; `ApplicationWorker` sets one automatically.'
def_node_matcher :sidekiq_options?, <<~PATTERN
@@ -16,7 +16,7 @@ module RuboCop
node.arguments.first.each_node(:pair) do |pair|
key_name = pair.key.children[0]
- add_offense(pair, location: :expression) if key_name == :queue
+ add_offense(pair) if key_name == :queue
end
end
end