-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
176 lines (152 loc) · 5.03 KB
/
.rubocop_todo.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# These cops from gitlab-styles. We don't particularly care about them
# for old specs, but may as well use them for new ones.
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-11-11 06:18:09 UTC using RuboCop version 1.67.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 3
RSpec/AnyInstance:
Exclude:
- 'spec/storage_project_selector_spec.rb'
- 'spec/storage_rebalance_spec.rb'
# Offense count: 3
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/libsonnet/toolinglinks/grafana_spec.rb'
# Offense count: 2
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Exclude:
- '**/spec/features/**/*'
- '**/spec/requests/**/*'
- '**/spec/routing/**/*'
- '**/spec/system/**/*'
- '**/spec/views/**/*'
- 'spec/jsonnet_test_helper_spec.rb'
- 'spec/libsonnet/toolinglinks/grafana_spec.rb'
# Offense count: 44
# Configuration parameters: Max.
RSpec/ExampleLength:
Enabled: false
# Offense count: 176
# Configuration parameters: .
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
EnforcedStyle: receive
# Offense count: 5
RSpec/MultipleDescribes:
Exclude:
- 'spec/registry_search_spec.rb'
- 'spec/storage_project_selector_spec.rb'
- 'spec/storage_rebalance_spec.rb'
- 'spec/storage_revert_spec.rb'
- 'spec/uploads_cleanup_spec.rb'
# Offense count: 54
RSpec/MultipleExpectations:
Max: 21
# Offense count: 55
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 38
# Offense count: 204
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
Exclude:
- 'spec/jsonnet_wrapper_spec.rb'
- 'spec/registry_search_spec.rb'
- 'spec/storage_project_selector_spec.rb'
- 'spec/storage_rebalance_spec.rb'
- 'spec/storage_revert_spec.rb'
- 'spec/update_stage_groups_feature_categories_spec.rb'
- 'spec/uploads_cleanup_spec.rb'
# Offense count: 4
RSpec/NestedGroups:
Max: 4
# Offense count: 1
RSpec/OverwritingSetup:
Exclude:
- 'spec/storage_rebalance_spec.rb'
# Offense count: 58
RSpec/SubjectStub:
Exclude:
- 'spec/jsonnet_wrapper_spec.rb'
- 'spec/periodic_queries/topic_spec.rb'
- 'spec/registry_search_spec.rb'
- 'spec/storage_project_selector_spec.rb'
- 'spec/storage_rebalance_spec.rb'
- 'spec/storage_revert_spec.rb'
- 'spec/uploads_cleanup_spec.rb'
# Offense count: 4
Style/OpenStructUse:
Enabled: false
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
InternalAffairs/CopDescriptionWithExample:
Exclude:
- 'scripts/deprecated_project_import.rb'
- 'scripts/storage_rebalance.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/BeEq:
Exclude:
- 'spec/update_stage_groups_feature_categories_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: be, be_nil
RSpec/BeNil:
Exclude:
- 'spec/periodic_queries/prometheus_api/response_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
RSpec/ContainExactly:
Exclude:
- 'spec/periodic_queries/topic_spec.rb'
- 'spec/periodic_queries_spec.rb'
# Offense count: 20
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
RSpec/IndexedLet:
Exclude:
- 'spec/storage_project_selector_spec.rb'
- 'spec/storage_rebalance_spec.rb'
# Offense count: 1
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: ^expect_, ^assert_
RSpec/NoExpectationExample:
Exclude:
- 'spec/storage_project_selector_spec.rb'
# Offense count: 21
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/ReceiveMessages:
Exclude:
- 'spec/storage_rebalance_spec.rb'
- 'spec/storage_revert_spec.rb'
# Offense count: 17
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: constant, string
RSpec/VerifiedDoubleReference:
Exclude:
- 'spec/periodic_queries_spec.rb'
- 'spec/registry_search_spec.rb'
- 'spec/storage_project_selector_spec.rb'
- 'spec/storage_rebalance_spec.rb'
- 'spec/storage_revert_spec.rb'
- 'spec/uploads_cleanup_spec.rb'
# Offense count: 80
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
Style/HashSyntax:
EnforcedShorthandSyntax: either
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapIntoArray:
Exclude:
- 'scripts/disaster-recovery/gitaly-replace-nodes.rb'