Commit 597f7e1b authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'ali/add-rubocop-exceptions-for-usagedata-constants' into 'master'

Add constants to the list of exceptions for UsageData/LargeTable

See merge request gitlab-org/gitlab!45203
parents 625dc923 78025ad2
......@@ -493,7 +493,7 @@ module EE
def clear_memoized
super
EE_MEMOIZED_VALUES.each { |v| clear_memoization(v) } # rubocop:disable UsageData/LargeTable
EE_MEMOIZED_VALUES.each { |v| clear_memoization(v) }
end
end
end
......
......@@ -823,7 +823,7 @@ module Gitlab
end
def clear_memoized
CE_MEMOIZED_VALUES.each { |v| clear_memoization(v) } # rubocop:disable UsageData/LargeTable
CE_MEMOIZED_VALUES.each { |v| clear_memoization(v) }
end
# rubocop: disable CodeReuse/ActiveRecord
......
......@@ -25,6 +25,8 @@ UsageData/LargeTable:
- :Time
- :SECURE_PRODUCT_TYPES
- :Settings
- :CE_MEMOIZED_VALUES
- :EE_MEMOIZED_VALUES
CountMethods:
- :count
- :distinct_count
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment