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 ...@@ -493,7 +493,7 @@ module EE
def clear_memoized def clear_memoized
super super
EE_MEMOIZED_VALUES.each { |v| clear_memoization(v) } # rubocop:disable UsageData/LargeTable EE_MEMOIZED_VALUES.each { |v| clear_memoization(v) }
end end
end end
end end
......
...@@ -823,7 +823,7 @@ module Gitlab ...@@ -823,7 +823,7 @@ module Gitlab
end end
def clear_memoized def clear_memoized
CE_MEMOIZED_VALUES.each { |v| clear_memoization(v) } # rubocop:disable UsageData/LargeTable CE_MEMOIZED_VALUES.each { |v| clear_memoization(v) }
end end
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -25,6 +25,8 @@ UsageData/LargeTable: ...@@ -25,6 +25,8 @@ UsageData/LargeTable:
- :Time - :Time
- :SECURE_PRODUCT_TYPES - :SECURE_PRODUCT_TYPES
- :Settings - :Settings
- :CE_MEMOIZED_VALUES
- :EE_MEMOIZED_VALUES
CountMethods: CountMethods:
- :count - :count
- :distinct_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