summaryrefslogtreecommitdiff
path: root/rubocop/rubocop-usage-data.yml
blob: 46e8a0674316c665316163b25688652335445f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
UsageData/LargeTable:
  Enabled: true
  Include:
    - 'lib/gitlab/usage_data.rb'
    - 'ee/lib/ee/gitlab/usage_data.rb'
  NonRelatedClasses:
    - :Date
    - :Feature
    - :Gitlab
    - :Gitlab::AppLogger
    - :Gitlab::Auth
    - :Gitlab::CurrentSettings
    - :Gitlab::Database
    - :Gitlab::ErrorTracking
    - :Gitlab::Geo
    - :Gitlab::Git
    - :Gitlab::IncomingEmail
    - :Gitlab::Metrics
    - :Gitlab::Runtime
    - :Gitaly::Server
    - :Gitlab::UsageData
    - :License
    - :Rails
    - :Time
    - :SECURE_PRODUCT_TYPES
    - :Settings
  CountMethods:
    - :count
    - :distinct_count
  AllowedMethods:
    - :arel_table
    - :minimum
    - :maximum
UsageData/DistinctCountByLargeForeignKey:
  Enabled: true
  Include:
    - 'lib/gitlab/usage_data.rb'
    - 'ee/lib/ee/gitlab/usage_data.rb'
  AllowedForeignKeys:
    - :user_id
    - :author_id
    - :creator_id
    - :owner_id
    - :project_id
    - :issue_id
    - :merge_request_id