Debian Codegraph @

rspec-expectations/.rubocop_todo.yml

raw symbols SCIP
1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2022-01-09 00:30:11 UTC using RuboCop version 1.11.0.
4 # The point is for the user to remove these configuration records
5 # one by one as the offenses are removed from the code base.
6 # Note that changes in the inspected code, or installation of new
7 # versions of RuboCop, may require this file to be generated again.
8
9 # Offense count: 4
10 # Cop supports --auto-correct.
11 # Configuration parameters: EnforcedStyle, IndentationWidth.
12 # SupportedStyles: with_first_argument, with_fixed_indentation
13 Layout/ArgumentAlignment:
14 Exclude:
15 - 'spec/rspec/expectations/handler_spec.rb'
16 - 'spec/rspec/expectations_spec.rb'
17 - 'spec/rspec/matchers/built_in/yield_spec.rb'
18
19 # Offense count: 15
20 # Cop supports --auto-correct.
21 Layout/ClosingHeredocIndentation:
22 Exclude:
23 - 'lib/rspec/matchers/built_in/equal.rb'
24 - 'lib/rspec/matchers/generated_descriptions.rb'
25 - 'spec/rspec/matchers/built_in/all_spec.rb'
26 - 'spec/rspec/matchers/built_in/contain_exactly_spec.rb'
27 - 'spec/rspec/matchers/built_in/equal_spec.rb'
28
29 # Offense count: 68
30 # Cop supports --auto-correct.
31 Layout/EmptyLineAfterGuardClause:
32 Enabled: false
33
34 # Offense count: 2
35 # Cop supports --auto-correct.
36 # Configuration parameters: AllowAliasSyntax, AllowedMethods.
37 # AllowedMethods: alias_method, public, protected, private
38 Layout/EmptyLinesAroundAttributeAccessor:
39 Exclude:
40 - 'lib/rspec/expectations/configuration.rb'
41 - 'spec/rspec/matchers/built_in/be_between_spec.rb'
42
43 # Offense count: 17
44 # Cop supports --auto-correct.
45 # Configuration parameters: EnforcedStyle, IndentationWidth.
46 # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
47 Layout/FirstArgumentIndentation:
48 Exclude:
49 - 'spec/rspec/expectations/failure_aggregator_spec.rb'
50 - 'spec/rspec/matchers/aliases_spec.rb'
51 - 'spec/rspec/matchers/built_in/compound_spec.rb'
52 - 'spec/rspec/matchers/composable_spec.rb'
53 - 'spec/rspec/matchers/expecteds_for_multiple_diffs_spec.rb'
54 - 'spec/rspec/matchers_spec.rb'
55
56 # Offense count: 12
57 # Cop supports --auto-correct.
58 # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
59 # SupportedHashRocketStyles: key, separator, table
60 # SupportedColonStyles: key, separator, table
61 # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
62 Layout/HashAlignment:
63 Exclude:
64 - 'lib/rspec/expectations/configuration.rb'
65 - 'rspec-expectations.gemspec'
66 - 'spec/rspec/expectations/handler_spec.rb'
67 - 'spec/rspec/matchers/composable_spec.rb'
68 - 'spec/rspec/matchers/description_generation_spec.rb'
69
70 # Offense count: 6
71 # Cop supports --auto-correct.
72 # Configuration parameters: Width, IgnoredPatterns.
73 Layout/IndentationWidth:
74 Exclude:
75 - 'lib/rspec/matchers/built_in/be.rb'
76 - 'lib/rspec/matchers/built_in/be_kind_of.rb'
77 - 'lib/rspec/matchers/built_in/start_or_end_with.rb'
78 - 'lib/rspec/matchers/dsl.rb'
79
80 # Offense count: 2
81 # Cop supports --auto-correct.
82 # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
83 # SupportedStyles: space, no_space, compact
84 # SupportedStylesForEmptyBraces: space, no_space
85 Layout/SpaceInsideHashLiteralBraces:
86 Exclude:
87 - 'spec/rspec/matchers/built_in/be_spec.rb'
88
89 # Offense count: 10
90 # Configuration parameters: AllowedMethods.
91 # AllowedMethods: enums
92 Lint/ConstantDefinitionInBlock:
93 Exclude:
94 - 'spec/rspec/matchers/built_in/be_between_spec.rb'
95 - 'spec/rspec/matchers/built_in/be_spec.rb'
96 - 'spec/rspec/matchers/built_in/have_attributes_spec.rb'
97 - 'spec/rspec/matchers/built_in/include_spec.rb'
98 - 'spec/rspec/matchers/built_in/raise_error_spec.rb'
99 - 'spec/rspec/matchers/description_generation_spec.rb'
100 - 'spec/rspec/matchers/expecteds_for_multiple_diffs_spec.rb'
101
102 # Offense count: 2
103 Lint/FloatComparison:
104 Exclude:
105 - 'spec/rspec/matchers/built_in/operators_spec.rb'
106 - 'spec/spec_helper.rb'
107
108 # Offense count: 1
109 # Cop supports --auto-correct.
110 # Configuration parameters: AllowedImplicitNamespaces.
111 # AllowedImplicitNamespaces: Gem
112 Lint/RaiseException:
113 Exclude:
114 - 'spec/rspec/matchers/dsl_spec.rb'
115
116 # Offense count: 2
117 # Cop supports --auto-correct.
118 Lint/RedundantCopDisableDirective:
119 Exclude:
120 - 'spec/rspec/matchers/built_in/change_spec.rb'
121 - 'spec/rspec/matchers/dsl_spec.rb'
122
123 # Offense count: 1
124 # Cop supports --auto-correct.
125 Lint/RedundantRequireStatement:
126 Exclude:
127 - 'spec/rspec/matchers/built_in/eq_spec.rb'
128
129 # Offense count: 2
130 Lint/StructNewOverride:
131 Exclude:
132 - 'spec/rspec/expectations/syntax_spec.rb'
133
134 # Offense count: 1
135 # Configuration parameters: AllowComments.
136 Lint/SuppressedException:
137 Exclude:
138 - 'benchmarks/**/*'
139 - 'spec/rspec/matchers/dsl_spec.rb'
140
141 # Offense count: 3
142 # Configuration parameters: IgnoredPatterns.
143 # IgnoredPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times)
144 Lint/UnreachableLoop:
145 Exclude:
146 - 'spec/rspec/matchers/dsl_spec.rb'
147
148 # Offense count: 1
149 # Cop supports --auto-correct.
150 # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
151 Lint/UnusedBlockArgument:
152 Exclude:
153 - 'spec/rspec/matchers/built_in/be_spec.rb'
154
155 # Offense count: 5
156 # Cop supports --auto-correct.
157 # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
158 Lint/UnusedMethodArgument:
159 Exclude:
160 - 'spec/rspec/expectations/failure_aggregator_spec.rb'
161 - 'spec/rspec/matchers/built_in/be_spec.rb'
162
163 # Offense count: 1
164 # Cop supports --auto-correct.
165 # Configuration parameters: AllowComments.
166 Lint/UselessMethodDefinition:
167 Exclude:
168 - 'lib/rspec/matchers.rb'
169
170 # Offense count: 3
171 # Cop supports --auto-correct.
172 Lint/UselessTimes:
173 Exclude:
174 - 'spec/rspec/matchers/built_in/yield_spec.rb'
175
176 # Offense count: 1
177 # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
178 Metrics/AbcSize:
179 Max: 27
180
181 # Offense count: 69
182 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
183 # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
184 Naming/MethodParameterName:
185 Exclude:
186 - 'benchmarks/caller_vs_raise_for_backtrace.rb'
187 - 'benchmarks/method_to_proc.rb'
188 - 'lib/rspec/expectations/minitest_integration.rb'
189 - 'lib/rspec/matchers/built_in/count_expectation.rb'
190 - 'lib/rspec/matchers/built_in/equal.rb'
191 - 'lib/rspec/matchers/built_in/operators.rb'
192 - 'lib/rspec/matchers/built_in/respond_to.rb'
193 - 'spec/rspec/matchers/aliased_matcher_spec.rb'
194 - 'spec/rspec/matchers/built_in/equal_spec.rb'
195 - 'spec/rspec/matchers/built_in/respond_to_spec.rb'
196 - 'spec/rspec/matchers/dsl_spec.rb'
197
198 # Offense count: 5
199 # Cop supports --auto-correct.
200 # Configuration parameters: PreferredName.
201 Naming/RescuedExceptionsVariableName:
202 Exclude:
203 - 'lib/rspec/matchers/built_in/base_matcher.rb'
204 - 'lib/rspec/matchers/built_in/raise_error.rb'
205 - 'lib/rspec/matchers/built_in/throw_symbol.rb'
206 - 'lib/rspec/matchers/dsl.rb'
207
208 # Offense count: 1
209 # Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
210 # SupportedStyles: inline, group
211 Style/AccessModifierDeclarations:
212 Exclude:
213 - 'lib/rspec/matchers/built_in/base_matcher.rb'
214
215 # Offense count: 2
216 # Cop supports --auto-correct.
217 # Configuration parameters: EnforcedStyle.
218 # SupportedStyles: percent_q, bare_percent
219 Style/BarePercentLiterals:
220 Exclude:
221 - 'spec/rspec/matchers/built_in/has_spec.rb'
222
223 # Offense count: 1
224 # Cop supports --auto-correct.
225 Style/CaseLikeIf:
226 Exclude:
227 - 'lib/rspec/matchers/built_in/has.rb'
228
229 # Offense count: 2
230 # Cop supports --auto-correct.
231 # Configuration parameters: IgnoredMethods.
232 # IgnoredMethods: ==, equal?, eql?
233 Style/ClassEqualityComparison:
234 Exclude:
235 - 'spec/rspec/matchers/aliases_spec.rb'
236 - 'spec/support/matchers.rb'
237
238 # Offense count: 11
239 # Cop supports --auto-correct.
240 # Configuration parameters: Keywords.
241 # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
242 Style/CommentAnnotation:
243 Exclude:
244 - 'lib/rspec/expectations/handler.rb'
245 - 'spec/rspec/matchers/built_in/respond_to_spec.rb'
246 - 'spec/rspec/matchers/dsl_spec.rb'
247 - 'spec/support/shared_examples/block_matcher.rb'
248 - 'spec/support/shared_examples/matcher.rb'
249
250 # Offense count: 1
251 # Cop supports --auto-correct.
252 Style/EmptyLiteral:
253 Exclude:
254 - 'spec/rspec/matchers/built_in/include_spec.rb'
255
256 # Offense count: 2
257 # Cop supports --auto-correct.
258 Style/ExpandPathArguments:
259 Exclude:
260 - 'Gemfile'
261 - 'rspec-expectations.gemspec'
262
263 # Offense count: 2
264 # Cop supports --auto-correct.
265 Style/ExplicitBlockArgument:
266 Exclude:
267 - 'spec/rspec/matchers/built_in/all_spec.rb'
268 - 'spec/rspec/matchers/built_in/contain_exactly_spec.rb'
269
270 # Offense count: 5
271 # Cop supports --auto-correct.
272 Style/GlobalStdStream:
273 Exclude:
274 - 'spec/rspec/matchers/built_in/change_spec.rb'
275 - 'spec/rspec/matchers/composable_spec.rb'
276
277 # Offense count: 7
278 # Configuration parameters: AllowedMethods.
279 # AllowedMethods: respond_to_missing?
280 Style/OptionalBooleanParameter:
281 Exclude:
282 - 'lib/rspec/matchers/built_in/contain_exactly.rb'
283 - 'lib/rspec/matchers/built_in/has.rb'
284 - 'lib/rspec/matchers/built_in/raise_error.rb'
285 - 'lib/rspec/matchers/dsl.rb'
286 - 'lib/rspec/matchers/matcher_delegator.rb'
287 - 'spec/rspec/matchers/built_in/compound_spec.rb'
288
289 # Offense count: 1
290 # Cop supports --auto-correct.
291 # Configuration parameters: PreferredDelimiters.
292 Style/PercentLiteralDelimiters:
293 Exclude:
294 - 'spec/spec_helper.rb'
295
296 # Offense count: 24
297 # Cop supports --auto-correct.
298 Style/RedundantRegexpEscape:
299 Exclude:
300 - 'lib/rspec/matchers/built_in/throw_symbol.rb'
301 - 'spec/rspec/matchers/built_in/raise_error_spec.rb'
302 - 'spec/rspec/matchers/composable_spec.rb'
303 - 'spec/rspec/matchers/dsl_spec.rb'
304
305 # Offense count: 1
306 # Cop supports --auto-correct.
307 Style/RedundantSelf:
308 Exclude:
309 - 'spec/rspec/matchers/built_in/be_spec.rb'
310
311 # Offense count: 1
312 # Cop supports --auto-correct.
313 # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
314 # AllowedMethods: present?, blank?, presence, try, try!
315 Style/SafeNavigation:
316 Exclude:
317 - 'lib/rspec/matchers/built_in/operators.rb'
318
319 # Offense count: 1
320 # Cop supports --auto-correct.
321 # Configuration parameters: AllowModifier.
322 Style/SoleNestedConditional:
323 Exclude:
324 - 'spec/rspec/expectations/failure_aggregator_spec.rb'
325
326 # Offense count: 7
327 # Cop supports --auto-correct.
328 Style/StringConcatenation:
329 Exclude:
330 - 'lib/rspec/matchers/built_in/all.rb'
331 - 'lib/rspec/matchers/built_in/be.rb'
332 - 'lib/rspec/matchers/built_in/compound.rb'
333 - 'lib/rspec/matchers/built_in/contain_exactly.rb'
334 - 'lib/rspec/matchers/built_in/yield.rb'
335 - 'spec/rspec/matchers/aliased_matcher_spec.rb'