diff options
Diffstat (limited to 'rubocop/cop/scalability/cron_worker_context.rb')
-rw-r--r-- | rubocop/cop/scalability/cron_worker_context.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/scalability/cron_worker_context.rb b/rubocop/cop/scalability/cron_worker_context.rb index 3cc0d42d7bc..ae8b0b328e2 100644 --- a/rubocop/cop/scalability/cron_worker_context.rb +++ b/rubocop/cop/scalability/cron_worker_context.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Scalability - class CronWorkerContext < RuboCop::Cop::Cop + class CronWorkerContext < RuboCop::Cop::Base MSG = <<~MSG Manually define an ApplicationContext for cronjob-workers. The context is required to add metadata to our logs. @@ -31,7 +31,7 @@ module RuboCop return if defines_contexts?(node.parent) return if schedules_with_batch_context?(node.parent) - add_offense(node.arguments.first, location: :expression) + add_offense(node.arguments.first) end end end |