summaryrefslogtreecommitdiff
path: root/rubocop/cop/usage_data/large_table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/cop/usage_data/large_table.rb')
-rw-r--r--rubocop/cop/usage_data/large_table.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/usage_data/large_table.rb b/rubocop/cop/usage_data/large_table.rb
index d9d44f74d26..7d50eebaa83 100644
--- a/rubocop/cop/usage_data/large_table.rb
+++ b/rubocop/cop/usage_data/large_table.rb
@@ -3,7 +3,7 @@
module RuboCop
module Cop
module UsageData
- class LargeTable < RuboCop::Cop::Cop
+ class LargeTable < RuboCop::Cop::Base
# This cop checks that batch count and distinct_count are used in usage_data.rb files in metrics based on ActiveRecord models.
#
# @example
@@ -56,7 +56,7 @@ module RuboCop
counters_used = node.ancestors.any? { |ancestor| allowed_method?(ancestor) }
unless counters_used
- add_offense(node, location: :expression, message: format(MSG, count_methods: count_methods.join(', '), class_name: class_name))
+ add_offense(node, message: format(MSG, count_methods: count_methods.join(', '), class_name: class_name))
end
end