-
-
Notifications
You must be signed in to change notification settings - Fork 216
/
.rubocop_todo.yml
215 lines (181 loc) · 5.67 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-11-06 16:01:45 UTC using RuboCop version 1.26.1.
# 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: 1
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
Exclude:
- 'lib/tasks/real_time.rake'
# Offense count: 2
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
Exclude:
- 'spec/slack/real_time/concurrency/clients/async_spec.rb'
- 'spec/support/real_time/concurrency/mock.rb'
# Offense count: 1
# Configuration parameters: AllowComments.
Lint/EmptyClass:
Exclude:
- 'spec/support/real_time/concurrency/mock.rb'
# Offense count: 2
Lint/MissingSuper:
Exclude:
- 'lib/slack/real_time/stores/starter.rb'
- 'lib/slack/real_time/stores/store.rb'
# Offense count: 1
# This cop supports unsafe auto-correction (--auto-correct-all).
Lint/NonDeterministicRequireOrder:
Exclude:
- 'spec/spec_helper.rb'
# Offense count: 2
# This cop supports safe auto-correction (--auto-correct).
Lint/RedundantCopDisableDirective:
Exclude:
- 'lib/slack-ruby-client.rb'
# Offense count: 12
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 36
# Offense count: 4
# Configuration parameters: IgnoredMethods.
Metrics/CyclomaticComplexity:
Max: 10
# Offense count: 13
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
Metrics/MethodLength:
Max: 26
# Offense count: 1
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
Metrics/ParameterLists:
Max: 6
# Offense count: 2
# Configuration parameters: IgnoredMethods.
Metrics/PerceivedComplexity:
Max: 10
# Offense count: 2
# This cop supports safe auto-correction (--auto-correct).
Performance/RegexpMatch:
Exclude:
- 'lib/tasks/web.rake'
# Offense count: 3
# This cop supports safe auto-correction (--auto-correct).
Performance/StringInclude:
Exclude:
- 'lib/tasks/web.rake'
# Offense count: 9
# This cop supports safe auto-correction (--auto-correct).
RSpec/ContextMethod:
Exclude:
- 'spec/slack/messages/formatting_spec.rb'
- 'spec/slack/web/api/mixins/users_spec.rb'
# Offense count: 83
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false
# Offense count: 65
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 18
# Offense count: 18
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
Enabled: false
# Offense count: 69
# Configuration parameters: .
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
EnforcedStyle: receive
# Offense count: 94
RSpec/MultipleExpectations:
Max: 5
# Offense count: 7
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 9
# Offense count: 3
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
Exclude:
- 'spec/slack/web/api/mixins/conversations_list_spec.rb'
# Offense count: 48
RSpec/NestedGroups:
Max: 6
# Offense count: 5
RSpec/StubbedMock:
Exclude:
- 'spec/slack/real_time/client_spec.rb'
- 'spec/slack/real_time/event_handlers/event_handlers_spec.rb'
- 'spec/slack/web/api/pagination/cursor_spec.rb'
- 'spec/slack/web/client_spec.rb'
# Offense count: 2
RSpec/SubjectStub:
Exclude:
- 'spec/slack/web/api/mixins/conversations_spec.rb'
- 'spec/slack/web/api/mixins/users_spec.rb'
# Offense count: 4
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: .
# SupportedStyles: constant, string
RSpec/VerifiedDoubleReference:
EnforcedStyle: string
# Offense count: 10
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/slack/events/request_spec.rb'
- 'spec/slack/real_time/client_spec.rb'
- 'spec/slack/web/faraday/response/raise_error_spec.rb'
- 'spec/support/real_time/connected_client.rb'
# Offense count: 1
# This cop supports safe auto-correction (--auto-correct).
Rake/Desc:
Exclude:
- 'lib/tasks/git.rake'
# Offense count: 1
# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
# SupportedStyles: inline, group
Style/AccessModifierDeclarations:
Exclude:
- 'lib/slack/real_time/client.rb'
# Offense count: 4
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
EnforcedStyle: unannotated
# Offense count: 5
# This cop supports safe auto-correction (--auto-correct).
Style/GlobalStdStream:
Exclude:
- 'lib/slack/logger.rb'
- 'lib/tasks/real_time.rake'
- 'spec/integration/integration_spec.rb'
- 'spec/slack/web/client_spec.rb'
# Offense count: 1
# This cop supports safe auto-correction (--auto-correct).
Style/MultilineTernaryOperator:
Exclude:
- 'spec/support/vcr.rb'
# Offense count: 3
Style/OpenStructUse:
Exclude:
- 'spec/slack/web/api/endpoints/custom_specs/chat_spec.rb'
- 'spec/slack/web/api/pagination/cursor_spec.rb'
- 'spec/slack/web/faraday/response/raise_error_spec.rb'
# Offense count: 1
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'spec/support/queue_with_timeout.rb'
# Offense count: 1
# This cop supports unsafe auto-correction (--auto-correct-all).
Style/SlicingWithRange:
Exclude:
- 'lib/slack/web/api/mixins/ids.id.rb'