Commit 78025ad2 authored by Alishan Ladhani's avatar Alishan Ladhani

Add constants to the list of exceptions for UsageData/LargeTable

parent f8a5fec6
......@@ -492,7 +492,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