debian-mirror-gitlab/rubocop/rubocop-usage-data.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

128 lines
2.9 KiB
YAML
Raw Permalink Normal View History

2020-10-24 23:57:45 +05:30
UsageData/LargeTable:
Enabled: true
Include:
- 'lib/gitlab/usage_data.rb'
- 'ee/lib/ee/gitlab/usage_data.rb'
NonRelatedClasses:
2020-11-24 15:15:51 +05:30
- :ActionMailer::Base
2020-10-24 23:57:45 +05:30
- :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
2021-02-22 17:27:13 +05:30
- :Gitlab::UsageDataCounters
2021-03-11 19:13:27 +05:30
- :Arel::Nodes::NamedFunction
- :Arel
2020-10-24 23:57:45 +05:30
- :License
- :Rails
- :Time
- :SECURE_PRODUCT_TYPES
- :Settings
2021-01-03 14:25:43 +05:30
- :CE_MEMOIZED_VALUES
- :EE_MEMOIZED_VALUES
2021-04-17 20:07:23 +05:30
- :Ohai::System
2020-10-24 23:57:45 +05:30
CountMethods:
- :count
- :distinct_count
2021-04-17 20:07:23 +05:30
- :histogram
2020-10-24 23:57:45 +05:30
AllowedMethods:
- :arel_table
- :minimum
- :maximum
2021-09-04 01:27:46 +05:30
UsageData/HistogramWithLargeTable:
Enabled: true
Include:
- 'lib/gitlab/usage_data.rb'
- 'ee/lib/ee/gitlab/usage_data.rb'
HighTrafficModels: &high_traffic_models # models for all high traffic tables in Migration/UpdateLargeTable
- 'AuditEvent'
- 'CommitStatus'
- 'Ci::Processable'
- 'Ci::Bridge'
- 'Ci::Build'
- 'GenericCommitStatus'
- 'Ci::BuildMetadata'
- 'Ci::JobArtifact'
- 'Ci::PipelineVariable'
- 'Ci::Pipeline'
- 'Ci::Stage'
- 'Deployment'
- 'Event'
- 'PushEvent'
- 'Issue'
- 'MergeRequestDiffCommit'
- 'MergeRequestDiffFile'
- 'MergeRequestDiff'
- 'MergeRequest::Metrics'
- 'MergeRequest'
- 'NamespaceSetting'
- 'Namespace'
- 'Group'
- 'NoteDiffFile'
- 'Note'
- 'DiffNote'
- 'DiscussionNote'
- 'SyntheticNote'
- 'LabelNote'
- 'MilestoneNote'
- 'StateNote'
- 'LegacyDiffNote'
- 'ProjectAuthorization'
- 'Project'
- 'ProjectCiCdSetting'
- 'ProjectSetting'
- 'ProjectFeature'
- 'ProtectedBranch'
- 'ExportedProtectedBranch'
- 'PushEventPayload'
- 'ResourceLabelEvent'
- 'Route'
- 'SentNotification'
- 'SystemNoteMetadata'
- 'ActsAsTaggableOn::Tagging'
- 'Todo'
- 'User'
- 'UserPreference'
- 'UserDetail'
- 'Vulnerabilities::Finding'
- 'WebHookLog'
2020-10-24 23:57:45 +05:30
UsageData/DistinctCountByLargeForeignKey:
Enabled: true
Include:
- 'lib/gitlab/usage_data.rb'
- 'ee/lib/ee/gitlab/usage_data.rb'
AllowedForeignKeys:
2020-11-24 15:15:51 +05:30
- 'agent_id'
- 'author_id'
- 'clusters.user_id'
- 'creator_id'
- 'issue_id'
- 'merge_request_id'
- 'merge_requests.target_project_id'
- 'owner_id'
- 'project_id'
- 'user_id'
2021-01-29 00:20:46 +05:30
- 'resource_owner_id'
2021-02-22 17:27:13 +05:30
- 'requirement_id'
2021-09-04 01:27:46 +05:30
UsageData/InstrumentationSuperclass:
Enabled: true
Include:
- 'lib/gitlab/usage/metrics/instrumentations/**/*.rb'
AllowedClasses:
- :DatabaseMetric
- :GenericMetric
- :RedisHLLMetric
2021-10-27 15:23:28 +05:30
- :RedisMetric
2022-07-23 23:45:48 +05:30
- :NumbersMetric
2022-11-25 23:54:43 +05:30
- :AggregatedMetric