babysms 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3f9df3bcd060bf7cf2002274c8bc53f7273f9397e6efa39dd28970d7d3e0f51f
4
+ data.tar.gz: 8aa12e743a0c367e9dccc8cdf8f8a0400a1e5b3d6df6d3dfeb6ad6fbff97ebac
5
+ SHA512:
6
+ metadata.gz: 650dd95b09beb35f593af7d7ca3d1c1e69232dffd36c153d8760f464d773a15d791c6a5a9a022aeca3b607ba713fce0d42c81768e181a70bd81cb1c4646f9136
7
+ data.tar.gz: 9d96880086b69ab3fe5b6b82050f59ef2248cbf14b527dff96b34b20674a7013e9c2167c9ecb9355228b59a4a6e8d4a7071c07829fced5e37cc6a8e3a5146da7
@@ -0,0 +1,12 @@
1
+ Gemfile.lock
2
+ /.bundle/
3
+ /.yardoc
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,1716 @@
1
+ ---
2
+ Lint/AmbiguousBlockAssociation:
3
+ Enabled: false
4
+ Lint/AmbiguousOperator:
5
+ Description: Checks for ambiguous operators in the first argument of a method invocation
6
+ without parentheses.
7
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#parens-as-args
8
+ Enabled: true
9
+ Lint/AmbiguousRegexpLiteral:
10
+ Description: Checks for ambiguous regexp literals in the first argument of a method
11
+ invocation without parenthesis.
12
+ Enabled: false
13
+ Lint/AssignmentInCondition:
14
+ Description: Don't use assignment in conditions.
15
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#safe-assignment-in-condition
16
+ Enabled: true
17
+ AllowSafeAssignment: true
18
+ Lint/BigDecimalNew:
19
+ Description: "`BigDecimal.new()` is deprecated. Use `BigDecimal()` instead."
20
+ Enabled: false
21
+ Lint/BooleanSymbol:
22
+ Enabled: false
23
+ Lint/CircularArgumentReference:
24
+ Description: Don't refer to the keyword argument in the default value.
25
+ Enabled: false
26
+ Lint/Debugger:
27
+ Description: Check for debugger calls.
28
+ Enabled: true
29
+ Lint/DeprecatedClassMethods:
30
+ Description: Check for deprecated class method calls.
31
+ Enabled: false
32
+ Lint/DuplicateCaseCondition:
33
+ Enabled: false
34
+ Lint/DuplicateMethods:
35
+ Description: Check for duplicate methods calls.
36
+ Enabled: true
37
+ Lint/DuplicatedKey:
38
+ Description: Check for duplicate keys in hash literals.
39
+ Enabled: true
40
+ Lint/EachWithObjectArgument:
41
+ Description: Check for immutable argument given to each_with_object.
42
+ Enabled: false
43
+ Lint/ElseLayout:
44
+ Description: Check for odd code arrangement in an else block.
45
+ Enabled: true
46
+ Lint/EmptyEnsure:
47
+ Description: Checks for empty ensure block.
48
+ Enabled: false
49
+ Lint/EmptyInterpolation:
50
+ Description: Checks for empty string interpolation.
51
+ Enabled: true
52
+ Lint/EmptyWhen:
53
+ Enabled: false
54
+ Lint/EndInMethod:
55
+ Description: END blocks should not be placed inside method definitions.
56
+ Enabled: false
57
+ Lint/EnsureReturn:
58
+ Description: Do not use return in an ensure block.
59
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-return-ensure
60
+ Enabled: false
61
+ Lint/ErbNewArguments:
62
+ Enabled: false
63
+ Lint/FloatOutOfRange:
64
+ Description: Catches floating-point literals too large or small for Ruby to represent.
65
+ Enabled: false
66
+ Lint/FormatParameterMismatch:
67
+ Description: The number of parameters to format/sprint must match the fields.
68
+ Enabled: true
69
+ Lint/HandleExceptions:
70
+ Description: Don't suppress exception.
71
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#dont-hide-exceptions
72
+ Enabled: false
73
+ Lint/ImplicitStringConcatenation:
74
+ Description: Checks for adjacent string literals on the same line, which could better
75
+ be represented as a single string literal.
76
+ Enabled: true
77
+ Lint/IneffectiveAccessModifier:
78
+ Description: Checks for attempts to use `private` or `protected` to set the visibility
79
+ of a class method, which does not work.
80
+ Enabled: true
81
+ Lint/InheritException:
82
+ Enabled: true
83
+ EnforcedStyle: standard_error
84
+ Lint/InterpolationCheck:
85
+ Enabled: false
86
+ Lint/LiteralAsCondition:
87
+ Description: Checks of literals used in conditions.
88
+ Enabled: false
89
+ Lint/LiteralInInterpolation:
90
+ Description: Avoid interpolating literals in strings
91
+ Enabled: false
92
+ AutoCorrect: false
93
+ Lint/Loop:
94
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
95
+ for post-loop tests.
96
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#loop-with-break
97
+ Enabled: false
98
+ Lint/MissingCopEnableDirective:
99
+ MaximumRangeSize: .inf
100
+ Description: Checks for a `# rubocop:enable` after `# rubocop:disable`
101
+ Enabled: true
102
+ Lint/MultipleCompare:
103
+ Enabled: false
104
+ Lint/NestedMethodDefinition:
105
+ Description: Do not use nested method definitions.
106
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-nested-methods
107
+ Enabled: false
108
+ Lint/NextWithoutAccumulator:
109
+ Enabled: false
110
+ Lint/NonLocalExitFromIterator:
111
+ Description: Do not use return in iterator to cause non-local exit.
112
+ Enabled: false
113
+ Lint/OrderedMagicComments:
114
+ Description: Checks the proper ordering of magic comments and whether a magic comment
115
+ is not placed before a shebang.
116
+ Enabled: true
117
+ Lint/ParenthesesAsGroupedExpression:
118
+ Description: Checks for method calls with a space before the opening parenthesis.
119
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#parens-no-spaces
120
+ Enabled: true
121
+ Lint/PercentStringArray:
122
+ Description: Checks for unwanted commas and quotes in %w/%W literals.
123
+ Enabled: true
124
+ Lint/PercentSymbolArray:
125
+ Enabled: false
126
+ Lint/RandOne:
127
+ Description: Checks for `rand(1)` calls. Such calls always return `0` and most likely
128
+ a mistake.
129
+ Enabled: true
130
+ Lint/RedundantWithIndex:
131
+ Enabled: false
132
+ Lint/RedundantWithObject:
133
+ Enabled: false
134
+ Lint/RegexpAsCondition:
135
+ Enabled: false
136
+ Lint/RequireParentheses:
137
+ Description: Use parentheses in the method call to avoid confusion about precedence.
138
+ Enabled: true
139
+ Lint/RescueException:
140
+ Description: Avoid rescuing the Exception class.
141
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-blind-rescues
142
+ Enabled: true
143
+ Lint/RescueType:
144
+ Enabled: false
145
+ Lint/ReturnInVoidContext:
146
+ Enabled: false
147
+ Lint/SafeNavigationChain:
148
+ Enabled: false
149
+ Lint/SafeNavigationConsistency:
150
+ Enabled: false
151
+ Lint/ScriptPermission:
152
+ Enabled: false
153
+ Lint/ShadowedArgument:
154
+ Description: Avoid reassigning arguments before they were used.
155
+ Enabled: true
156
+ Lint/ShadowedException:
157
+ Description: Avoid rescuing a higher level exception before a lower level exception.
158
+ Enabled: false
159
+ Lint/ShadowingOuterLocalVariable:
160
+ Description: Do not use the same name as outer local variable for block arguments
161
+ or block local variables.
162
+ Enabled: true
163
+ Lint/StringConversionInInterpolation:
164
+ Description: Checks for Object#to_s usage in string interpolation.
165
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-to-s
166
+ Enabled: true
167
+ Lint/UnderscorePrefixedVariableName:
168
+ Description: Do not use prefix `_` for a variable that is used.
169
+ Enabled: false
170
+ Lint/UnifiedInteger:
171
+ Enabled: false
172
+ Lint/UnneededCopDisableDirective:
173
+ Description: 'Checks for rubocop:disable comments that can be removed. Note: this
174
+ cop is not disabled when disabling all cops. It must be explicitly disabled.'
175
+ Enabled: true
176
+ Lint/UnneededCopEnableDirective:
177
+ Description: Checks for rubocop:enable comments that can be removed.
178
+ Enabled: true
179
+ Lint/UnneededRequireStatement:
180
+ Enabled: false
181
+ Lint/UnneededSplatExpansion:
182
+ Enabled: false
183
+ Lint/UnreachableCode:
184
+ Description: Unreachable code.
185
+ Enabled: false
186
+ Lint/UnusedBlockArgument:
187
+ Description: Checks for unused block arguments.
188
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#underscore-unused-vars
189
+ Enabled: false
190
+ Lint/UnusedMethodArgument:
191
+ Description: Checks for unused method arguments.
192
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#underscore-unused-vars
193
+ Enabled: false
194
+ Lint/UriEscapeUnescape:
195
+ Enabled: false
196
+ Lint/UriRegexp:
197
+ Enabled: false
198
+ Lint/UselessAccessModifier:
199
+ Description: Checks for useless access modifiers.
200
+ Enabled: true
201
+ Lint/UselessAssignment:
202
+ Description: Checks for useless assignment to a local variable.
203
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#underscore-unused-vars
204
+ Enabled: true
205
+ Lint/UselessComparison:
206
+ Description: Checks for comparison of something with itself.
207
+ Enabled: true
208
+ Lint/UselessElseWithoutRescue:
209
+ Description: Checks for useless `else` in `begin..end` without `rescue`.
210
+ Enabled: true
211
+ Lint/UselessSetterCall:
212
+ Description: Checks for useless setter call to a local variable.
213
+ Enabled: true
214
+ Lint/Void:
215
+ Description: Possible use of operator/literal/variable in void context.
216
+ Enabled: false
217
+ Bundler/DuplicatedGem:
218
+ Enabled: true
219
+ Bundler/InsecureProtocolSource:
220
+ Enabled: false
221
+ Bundler/OrderedGems:
222
+ Enabled: false
223
+ Security/Eval:
224
+ Description: The use of eval represents a serious security risk.
225
+ Enabled: true
226
+ Security/JSONLoad:
227
+ Enabled: false
228
+ Security/MarshalLoad:
229
+ Enabled: false
230
+ Security/Open:
231
+ Description: The use of Kernel#open represents a serious security risk.
232
+ Enabled: false
233
+ Security/YAMLLoad:
234
+ Enabled: false
235
+ Style/AccessModifierDeclarations:
236
+ Enabled: false
237
+ Style/Alias:
238
+ Description: Use alias_method instead of alias.
239
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#alias-method
240
+ Enabled: false
241
+ Style/AndOr:
242
+ Description: Use &&/|| instead of and/or.
243
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-and-or-or
244
+ Enabled: true
245
+ EnforcedStyle: always
246
+ SupportedStyles:
247
+ - always
248
+ - conditionals
249
+ Style/ArrayJoin:
250
+ Description: Use Array#join instead of Array#*.
251
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#array-join
252
+ Enabled: true
253
+ Style/AsciiComments:
254
+ Description: Use only ascii symbols in comments.
255
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#english-comments
256
+ Enabled: false
257
+ Style/Attr:
258
+ Description: Checks for uses of Module#attr.
259
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#attr
260
+ Enabled: false
261
+ Style/AutoResourceCleanup:
262
+ Description: Suggests the usage of an auto resource cleanup version of a method
263
+ (if available).
264
+ Enabled: false
265
+ Style/BarePercentLiterals:
266
+ Description: Checks if usage of %() or %Q() matches configuration.
267
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-q-shorthand
268
+ Enabled: false
269
+ EnforcedStyle: bare_percent
270
+ SupportedStyles:
271
+ - percent_q
272
+ - bare_percent
273
+ Style/BeginBlock:
274
+ Description: Avoid the use of BEGIN blocks.
275
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-BEGIN-blocks
276
+ Enabled: false
277
+ Style/BlockComments:
278
+ Description: Do not use block comments.
279
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-block-comments
280
+ Enabled: true
281
+ Style/BlockDelimiters:
282
+ Description: Check for uses of braces or do/end around single line or multi-line
283
+ blocks.
284
+ Enabled: true
285
+ EnforcedStyle: line_count_based
286
+ SupportedStyles:
287
+ - line_count_based
288
+ - semantic
289
+ - braces_for_chaining
290
+ ProceduralMethods:
291
+ - benchmark
292
+ - bm
293
+ - bmbm
294
+ - create
295
+ - each_with_object
296
+ - measure
297
+ - new
298
+ - realtime
299
+ - tap
300
+ - with_object
301
+ FunctionalMethods:
302
+ - let
303
+ - let!
304
+ - subject
305
+ - watch
306
+ IgnoredMethods:
307
+ - lambda
308
+ - proc
309
+ - it
310
+ Style/BracesAroundHashParameters:
311
+ Description: Enforce braces style around hash parameters.
312
+ Enabled: false
313
+ EnforcedStyle: no_braces
314
+ SupportedStyles:
315
+ - braces
316
+ - no_braces
317
+ - context_dependent
318
+ Style/CaseEquality:
319
+ Description: Avoid explicit use of the case equality operator(===).
320
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-case-equality
321
+ Enabled: false
322
+ Style/CharacterLiteral:
323
+ Description: Checks for uses of character literals.
324
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-character-literals
325
+ Enabled: false
326
+ Style/ClassAndModuleChildren:
327
+ Description: Checks style of children classes and modules.
328
+ Enabled: false
329
+ EnforcedStyle: nested
330
+ Style/ClassCheck:
331
+ Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
332
+ Enabled: true
333
+ EnforcedStyle: is_a?
334
+ Style/ClassMethods:
335
+ Description: Use self when defining module/class methods.
336
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#def-self-class-methods
337
+ Enabled: false
338
+ Style/ClassVars:
339
+ Description: Avoid the use of class variables.
340
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-class-vars
341
+ Enabled: true
342
+ Style/CollectionMethods:
343
+ Description: Preferred collection methods.
344
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#map-find-select-reduce-size
345
+ Enabled: false
346
+ PreferredMethods:
347
+ collect: map
348
+ collect!: map!
349
+ inject: reduce
350
+ detect: detect
351
+ find: detect
352
+ find_all: select
353
+ Style/ColonMethodCall:
354
+ Description: 'Do not use :: for method call.'
355
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#double-colons
356
+ Enabled: true
357
+ Style/ColonMethodDefinition:
358
+ Description: 'Do not use :: for defining class methods.'
359
+ StyleGuide: "#colon-method-definition"
360
+ Enabled: true
361
+ Style/CommandLiteral:
362
+ Description: Use `` or %x around command literals.
363
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-x
364
+ Enabled: true
365
+ EnforcedStyle: backticks
366
+ AllowInnerBackticks: false
367
+ Style/CommentAnnotation:
368
+ Description: Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK,
369
+ REVIEW).
370
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#annotate-keywords
371
+ Enabled: false
372
+ Keywords:
373
+ - TODO
374
+ - FIXME
375
+ - OPTIMIZE
376
+ - HACK
377
+ - REVIEW
378
+ Style/CommentedKeyword:
379
+ Enabled: false
380
+ Style/ConditionalAssignment:
381
+ Description: Use the return value of `if` and `case` statements for assignment to
382
+ a variable and variable comparison instead of assigning that variable inside of
383
+ each branch.
384
+ Enabled: false
385
+ SingleLineConditionsOnly: true
386
+ Style/Copyright:
387
+ Description: Include a copyright notice in each file before any code.
388
+ Enabled: false
389
+ Notice: "^Copyright (\\(c\\) )?2[0-9]{3} .+"
390
+ AutocorrectNotice: ''
391
+ Style/DateTime:
392
+ Enabled: false
393
+ Style/DefWithParentheses:
394
+ Description: Use def with parentheses when there are arguments.
395
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#method-parens
396
+ Enabled: false
397
+ Style/Dir:
398
+ Enabled: false
399
+ Style/Documentation:
400
+ Enabled: false
401
+ Style/DocumentationMethod:
402
+ Enabled: false
403
+ Style/DoubleNegation:
404
+ Description: Checks for uses of double negation (!!).
405
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-bang-bang
406
+ Enabled: false
407
+ Style/EachForSimpleLoop:
408
+ Description: Use `Integer#times` for a simple loop which iterates a fixed number
409
+ of times.
410
+ Enabled: true
411
+ Style/EachWithObject:
412
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
413
+ Enabled: false
414
+ Style/EmptyBlockParameter:
415
+ Description: Omit pipes for empty block parameters.
416
+ Enabled: true
417
+ Style/EmptyCaseCondition:
418
+ Enabled: false
419
+ Style/EmptyElse:
420
+ Description: Avoid empty else-clauses.
421
+ Enabled: false
422
+ EnforcedStyle: both
423
+ SupportedStyles:
424
+ - empty
425
+ - nil
426
+ - both
427
+ Style/EmptyLambdaParameter:
428
+ Description: Omit parens for empty lambda parameters.
429
+ Enabled: true
430
+ Style/EmptyLiteral:
431
+ Description: Prefer literals to Array.new/Hash.new/String.new.
432
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#literal-array-hash
433
+ Enabled: true
434
+ Style/EmptyMethod:
435
+ Enabled: false
436
+ Style/Encoding:
437
+ Description: Use UTF-8 as the source file encoding.
438
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#utf-8
439
+ Enabled: false
440
+ Style/EndBlock:
441
+ Description: Avoid the use of END blocks.
442
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-END-blocks
443
+ Enabled: false
444
+ Style/EvalWithLocation:
445
+ Description: Pass `__FILE__` and `__LINE__` to `eval` method, as they are used by
446
+ backtraces.
447
+ Enabled: false
448
+ Style/EvenOdd:
449
+ Description: Favor the use of Fixnum#even? && Fixnum#odd?
450
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#predicate-methods
451
+ Enabled: false
452
+ Style/ExpandPathArguments:
453
+ Description: Use `expand_path(__dir__)` instead of `expand_path('..', __FILE__)`.
454
+ Enabled: false
455
+ Lint/FlipFlop:
456
+ Description: Checks for flip flops
457
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-flip-flops
458
+ Enabled: false
459
+ Style/For:
460
+ Description: Checks use of for or each in multiline loops.
461
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-for-loops
462
+ Enabled: false
463
+ EnforcedStyle: each
464
+ SupportedStyles:
465
+ - for
466
+ - each
467
+ Style/FormatString:
468
+ Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
469
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#sprintf
470
+ Enabled: false
471
+ EnforcedStyle: format
472
+ SupportedStyles:
473
+ - format
474
+ - sprintf
475
+ - percent
476
+ Style/FormatStringToken:
477
+ Enabled: false
478
+ Style/FrozenStringLiteralComment:
479
+ Description: Add the frozen_string_literal comment to the top of files to help transition
480
+ from Ruby 2.3.0 to Ruby 3.0.
481
+ Enabled: false
482
+ EnforcedStyle: never
483
+ SupportedStyles:
484
+ - never
485
+ - always
486
+ Style/GlobalVars:
487
+ Description: Do not introduce global variables.
488
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#instance-vars
489
+ Reference: http://www.zenspider.com/Languages/Ruby/QuickRef.html
490
+ Enabled: false
491
+ AllowedVariables: []
492
+ Style/GuardClause:
493
+ Enabled: false
494
+ Style/HashSyntax:
495
+ Enabled: false
496
+ Style/IdenticalConditionalBranches:
497
+ Description: Checks that conditional statements do not have an identical line at
498
+ the end of each branch, which can validly be moved out of the conditional.
499
+ Enabled: false
500
+ Style/IfInsideElse:
501
+ Description: Finds if nodes inside else, which can be converted to elsif.
502
+ Enabled: false
503
+ Style/IfUnlessModifier:
504
+ Enabled: false
505
+ Style/IfUnlessModifierOfIfUnless:
506
+ Description: Checks for if and unless statements used as modifers of other if or
507
+ unless statements.
508
+ Enabled: true
509
+ Style/IfWithSemicolon:
510
+ Description: Do not use if x; .... Use the ternary operator instead.
511
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-semicolon-ifs
512
+ Enabled: true
513
+ Style/InfiniteLoop:
514
+ Description: Use Kernel#loop for infinite loops.
515
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#infinite-loop
516
+ Enabled: false
517
+ Style/InlineComment:
518
+ Description: Avoid inline comments.
519
+ Enabled: false
520
+ Style/InverseMethods:
521
+ Enabled: false
522
+ Style/Lambda:
523
+ Description: Use the new lambda literal syntax for single-line blocks.
524
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#lambda-multi-line
525
+ Enabled: false
526
+ Style/LambdaCall:
527
+ Description: Use lambda.call(...) instead of lambda.(...).
528
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#proc-call
529
+ Enabled: true
530
+ EnforcedStyle: call
531
+ SupportedStyles:
532
+ - call
533
+ - braces
534
+ Style/LineEndConcatenation:
535
+ Description: Use \ instead of + or << to concatenate two string literals at line
536
+ end.
537
+ Enabled: true
538
+ Style/MethodCallWithArgsParentheses:
539
+ Enabled: false
540
+ Style/MethodCallWithoutArgsParentheses:
541
+ Description: Do not use parentheses for method calls with no arguments.
542
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-args-no-parens
543
+ Enabled: true
544
+ Style/MethodCalledOnDoEndBlock:
545
+ Description: Avoid chaining a method call on a do...end block.
546
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#single-line-blocks
547
+ Enabled: false
548
+ Style/MethodDefParentheses:
549
+ Description: Checks if the method definitions have or don't have parentheses.
550
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#method-parens
551
+ Enabled: true
552
+ EnforcedStyle: require_parentheses
553
+ SupportedStyles:
554
+ - require_parentheses
555
+ - require_no_parentheses
556
+ Style/MethodMissingSuper:
557
+ Enabled: false
558
+ Style/MissingRespondToMissing:
559
+ Enabled: false
560
+ Style/MinMax:
561
+ Enabled: false
562
+ Style/MissingElse:
563
+ Description: Require if/case expressions to have an else branches. If enabled, it
564
+ is recommended that Style/UnlessElse and Style/EmptyElse be enabled. This will
565
+ conflict with Style/EmptyElse if Style/EmptyElse is configured to style "both"
566
+ Enabled: false
567
+ EnforcedStyle: both
568
+ SupportedStyles:
569
+ - if
570
+ - case
571
+ - both
572
+ Style/MixinGrouping:
573
+ Description: This cop checks for grouping of mixins in `class` and `module` bodies.
574
+ By default it enforces mixins to be placed in separate declarations, but it can
575
+ be configured to enforce grouping them in one declaration.
576
+ Enabled: true
577
+ Style/MixinUsage:
578
+ Description: This cop checks that `include`, `extend` and `prepend` exists at the
579
+ top level. Using these at the top level affects the behavior of `Object`. There
580
+ will not be using `include`, `extend` and `prepend` at the top level. Let's use
581
+ it inside `class` or `module`.
582
+ Enabled: true
583
+ Style/ModuleFunction:
584
+ Description: Checks for usage of `extend self` in modules.
585
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#module-function
586
+ Enabled: false
587
+ Style/MultilineBlockChain:
588
+ Description: Avoid multi-line chains of blocks.
589
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#single-line-blocks
590
+ Enabled: false
591
+ Style/MultilineIfModifier:
592
+ Enabled: true
593
+ Style/MultilineIfThen:
594
+ Description: Do not use then for multi-line if/unless.
595
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-then
596
+ Enabled: true
597
+ Style/MultilineMemoization:
598
+ Enabled: false
599
+ Style/MultilineTernaryOperator:
600
+ Description: 'Avoid multi-line ?: (the ternary operator); use if/unless instead.'
601
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-multiline-ternary
602
+ Enabled: true
603
+ Style/MultipleComparison:
604
+ Enabled: false
605
+ Style/MutableConstant:
606
+ Description: Do not assign mutable objects to constants.
607
+ Enabled: true
608
+ Style/NegatedIf:
609
+ Description: Favor unless over if for negative conditions (or control flow or).
610
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#unless-for-negatives
611
+ Enabled: false
612
+ Style/NegatedWhile:
613
+ Description: Favor until over while for negative conditions.
614
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#until-for-negatives
615
+ Enabled: false
616
+ Style/NestedModifier:
617
+ Enabled: true
618
+ Style/NestedParenthesizedCalls:
619
+ Description: Parenthesize method calls which are nested inside the argument list
620
+ of another parenthesized method call.
621
+ Enabled: true
622
+ Style/NestedTernaryOperator:
623
+ Description: Use one expression per branch in a ternary operator.
624
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-nested-ternary
625
+ Enabled: true
626
+ Style/Next:
627
+ Description: Use `next` to skip iteration instead of a condition at the end.
628
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-nested-conditionals
629
+ Enabled: false
630
+ EnforcedStyle: skip_modifier_ifs
631
+ MinBodyLength: 3
632
+ SupportedStyles:
633
+ - skip_modifier_ifs
634
+ - always
635
+ Style/NilComparison:
636
+ Description: Prefer x.nil? to x == nil.
637
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#predicate-methods
638
+ Enabled: true
639
+ Style/NonNilCheck:
640
+ Description: Checks for redundant nil checks.
641
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-non-nil-checks
642
+ Enabled: true
643
+ IncludeSemanticChanges: false
644
+ Style/Not:
645
+ Description: Use ! instead of not.
646
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#bang-not-not
647
+ Enabled: true
648
+ Style/NumericLiteralPrefix:
649
+ EnforcedOctalStyle: zero_with_o
650
+ SupportedOctalStyles:
651
+ - zero_with_o
652
+ - zero_only
653
+ Enabled: true
654
+ Style/NumericLiterals:
655
+ Description: Add underscores to large numeric literals to improve their readability.
656
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#underscores-in-numerics
657
+ Enabled: false
658
+ Style/NumericPredicate:
659
+ Enabled: false
660
+ Style/OneLineConditional:
661
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
662
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#ternary-operator
663
+ Enabled: true
664
+ Style/OptionHash:
665
+ Description: Don't use option hashes when you can use keyword arguments.
666
+ Enabled: false
667
+ SuspiciousParamNames:
668
+ - options
669
+ - opts
670
+ - args
671
+ - params
672
+ - parameters
673
+ Style/OptionalArguments:
674
+ Description: Checks for optional arguments that do not appear at the end of the
675
+ argument list
676
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#optional-arguments
677
+ Enabled: true
678
+ Style/OrAssignment:
679
+ Enabled: true
680
+ Style/ParallelAssignment:
681
+ Description: Check for simple usages of parallel assignment. It will only warn when
682
+ the number of variables matches on both sides of the assignment.
683
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#parallel-assignment
684
+ Enabled: false
685
+ Style/ParenthesesAroundCondition:
686
+ Description: Don't use parentheses around the condition of an if/unless/while.
687
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-parens-if
688
+ Enabled: true
689
+ AllowSafeAssignment: true
690
+ Style/PercentLiteralDelimiters:
691
+ Description: Use `%`-literal delimiters consistently
692
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-literal-braces
693
+ Enabled: true
694
+ PreferredDelimiters:
695
+ "%": "()"
696
+ "%i": "()"
697
+ "%q": "()"
698
+ "%Q": "()"
699
+ "%r": "{}"
700
+ "%s": "()"
701
+ "%w": "()"
702
+ "%W": "()"
703
+ "%x": "()"
704
+ Style/PercentQLiterals:
705
+ Description: Checks if uses of %Q/%q match the configured preference.
706
+ Enabled: false
707
+ EnforcedStyle: lower_case_q
708
+ SupportedStyles:
709
+ - lower_case_q
710
+ - upper_case_q
711
+ Style/PerlBackrefs:
712
+ Description: Avoid Perl-style regex back references.
713
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-perl-regexp-last-matchers
714
+ Enabled: true
715
+ Style/PreferredHashMethods:
716
+ Description: Checks for use of deprecated Hash methods.
717
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#hash-key
718
+ Enabled: true
719
+ Style/Proc:
720
+ Description: Use proc instead of Proc.new.
721
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#proc
722
+ Enabled: false
723
+ Style/RaiseArgs:
724
+ Description: Checks the arguments passed to raise/fail.
725
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#exception-class-messages
726
+ Enabled: true
727
+ EnforcedStyle: exploded
728
+ SupportedStyles:
729
+ - compact
730
+ - exploded
731
+ Style/RandomWithOffset:
732
+ Description: Prefer to use ranges when generating random numbers instead of integers
733
+ with offsets.
734
+ StyleGuide: "#random-numbers"
735
+ Enabled: false
736
+ Style/RedundantBegin:
737
+ Description: Don't use begin blocks when they are not needed.
738
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#begin-implicit
739
+ Enabled: true
740
+ Style/RedundantConditional:
741
+ Enabled: true
742
+ Style/RedundantException:
743
+ Description: Checks for an obsolete RuntimeException argument in raise/fail.
744
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-explicit-runtimeerror
745
+ Enabled: true
746
+ Style/RedundantFreeze:
747
+ Description: Checks usages of Object#freeze on immutable objects.
748
+ Enabled: true
749
+ Style/RedundantParentheses:
750
+ Description: Checks for parentheses that seem not to serve any purpose.
751
+ Enabled: true
752
+ Style/RedundantReturn:
753
+ Description: Don't use return where it's not required.
754
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-explicit-return
755
+ Enabled: true
756
+ AllowMultipleReturnValues: false
757
+ Style/RedundantSelf:
758
+ Description: Don't use self where it's not needed.
759
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-self-unless-required
760
+ Enabled: true
761
+ Style/RegexpLiteral:
762
+ Description: Use / or %r around regular expressions.
763
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-r
764
+ Enabled: false
765
+ EnforcedStyle: slashes
766
+ SupportedStyles:
767
+ - slashes
768
+ - percent_r
769
+ - mixed
770
+ AllowInnerSlashes: false
771
+ Style/RescueModifier:
772
+ Description: Avoid using rescue in its modifier form.
773
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-rescue-modifiers
774
+ Enabled: true
775
+ Style/RescueStandardError:
776
+ Description: Avoid rescuing without specifying an error class.
777
+ Enabled: false
778
+ Style/ReturnNil:
779
+ Enabled: false
780
+ Style/SafeNavigation:
781
+ Enabled: false
782
+ Style/SelfAssignment:
783
+ Description: Checks for places where self-assignment shorthand should have been
784
+ used.
785
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#self-assignment
786
+ Enabled: true
787
+ Style/Semicolon:
788
+ Description: Don't use semicolons to terminate expressions.
789
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-semicolon
790
+ Enabled: true
791
+ AllowAsExpressionSeparator: false
792
+ Style/Send:
793
+ Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
794
+ may overlap with existing methods.
795
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#prefer-public-send
796
+ Enabled: false
797
+ Style/SignalException:
798
+ Description: Checks for proper usage of fail and raise.
799
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#fail-method
800
+ Enabled: false
801
+ EnforcedStyle: semantic
802
+ SupportedStyles:
803
+ - only_raise
804
+ - only_fail
805
+ - semantic
806
+ Style/SingleLineBlockParams:
807
+ Description: Enforces the names of some block params.
808
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#reduce-blocks
809
+ Enabled: false
810
+ Methods:
811
+ - reduce:
812
+ - a
813
+ - e
814
+ - inject:
815
+ - a
816
+ - e
817
+ Style/SingleLineMethods:
818
+ Description: Avoid single-line methods.
819
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-single-line-methods
820
+ Enabled: true
821
+ AllowIfMethodIsEmpty: true
822
+ Style/SpecialGlobalVars:
823
+ Description: Avoid Perl-style global variables.
824
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-cryptic-perlisms
825
+ Enabled: true
826
+ Style/StabbyLambdaParentheses:
827
+ Description: Check for the usage of parentheses around stabby lambda arguments.
828
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#stabby-lambda-with-args
829
+ Enabled: false
830
+ EnforcedStyle: require_parentheses
831
+ SupportedStyles:
832
+ - require_parentheses
833
+ - require_no_parentheses
834
+ Style/StderrPuts:
835
+ Enabled: true
836
+ Style/StringHashKeys:
837
+ Description: Prefer symbols instead of strings as hash keys.
838
+ StyleGuide: "#symbols-as-keys"
839
+ Enabled: false
840
+ Style/StringLiterals:
841
+ Enabled: false
842
+ Style/StringLiteralsInInterpolation:
843
+ Description: Checks if uses of quotes inside expressions in interpolated strings
844
+ match the configured preference.
845
+ Enabled: false
846
+ EnforcedStyle: single_quotes
847
+ SupportedStyles:
848
+ - single_quotes
849
+ - double_quotes
850
+ Style/StringMethods:
851
+ Description: Checks if configured preferred methods are used over non-preferred.
852
+ Enabled: false
853
+ PreferredMethods:
854
+ intern: to_sym
855
+ Style/StructInheritance:
856
+ Description: Checks for inheritance from Struct.new.
857
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-extend-struct-new
858
+ Enabled: false
859
+ Style/SymbolArray:
860
+ Description: Use %i or %I for arrays of symbols.
861
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-i
862
+ Enabled: false
863
+ Style/SymbolLiteral:
864
+ Description: Use plain symbols instead of string symbols when possible.
865
+ Enabled: true
866
+ Style/SymbolProc:
867
+ Description: Use symbols as procs instead of blocks when possible.
868
+ Enabled: false
869
+ IgnoredMethods:
870
+ - respond_to
871
+ Style/TernaryParentheses:
872
+ Enabled: false
873
+ Style/TrailingBodyOnClass:
874
+ Description: Class body goes below class statement.
875
+ Enabled: true
876
+ Style/TrailingBodyOnMethodDefinition:
877
+ Description: Method body goes below definition.
878
+ Enabled: true
879
+ Style/TrailingBodyOnModule:
880
+ Description: Module body goes below module statement.
881
+ Enabled: true
882
+ Style/TrailingCommaInArguments:
883
+ Enabled: false
884
+ Style/TrailingCommaInArrayLiteral:
885
+ Enabled: true
886
+ EnforcedStyleForMultiline: consistent_comma
887
+ Style/TrailingCommaInHashLiteral:
888
+ Enabled: true
889
+ EnforcedStyleForMultiline: consistent_comma
890
+ Style/TrailingUnderscoreVariable:
891
+ Description: Checks for the usage of unneeded trailing underscores at the end of
892
+ parallel variable assignment.
893
+ Enabled: false
894
+ Style/TrivialAccessors:
895
+ AllowPredicates: true
896
+ Style/UnlessElse:
897
+ Description: Do not use unless with else. Rewrite these with the positive case first.
898
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-else-with-unless
899
+ Enabled: true
900
+ Style/UnneededCapitalW:
901
+ Description: Checks for %W when interpolation is not needed.
902
+ Enabled: false
903
+ Style/UnneededCondition:
904
+ Enabled: false
905
+ Style/UnneededInterpolation:
906
+ Description: Checks for strings that are just an interpolated expression.
907
+ Enabled: false
908
+ Style/UnneededPercentQ:
909
+ Description: Checks for %q/%Q when single quotes or double quotes would do.
910
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-q
911
+ Enabled: false
912
+ Style/UnpackFirst:
913
+ Enabled: false
914
+ Style/VariableInterpolation:
915
+ Description: Don't interpolate global, instance and class variables directly in
916
+ strings.
917
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#curlies-interpolate
918
+ Enabled: false
919
+ Style/WhenThen:
920
+ Description: Use when x then ... for one-line cases.
921
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#one-line-cases
922
+ Enabled: false
923
+ Style/WhileUntilDo:
924
+ Description: Checks for redundant do after while or until.
925
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-multiline-while-do
926
+ Enabled: true
927
+ Style/WhileUntilModifier:
928
+ Description: Favor modifier while/until usage when you have a single-line body.
929
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#while-as-a-modifier
930
+ Enabled: false
931
+ Style/WordArray:
932
+ Description: Use %w or %W for arrays of words.
933
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-w
934
+ Enabled: false
935
+ MinSize: 0
936
+ WordRegex: !ruby/regexp /\A[\p{Word}]+\z/
937
+ Style/YodaCondition:
938
+ Enabled: false
939
+ Style/ZeroLengthPredicate:
940
+ Description: 'Use #empty? when testing for objects of length 0.'
941
+ Enabled: false
942
+ Metrics/AbcSize:
943
+ Enabled: false
944
+ Metrics/BlockLength:
945
+ Enabled: false
946
+ Metrics/BlockNesting:
947
+ Description: Avoid excessive block nesting
948
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#three-is-the-number-thou-shalt-count
949
+ Enabled: false
950
+ Max: 3
951
+ Metrics/ClassLength:
952
+ Enabled: false
953
+ Metrics/CyclomaticComplexity:
954
+ Description: A complexity metric that is strongly correlated to the number of test
955
+ cases needed to validate a method.
956
+ Enabled: false
957
+ Max: 6
958
+ Metrics/LineLength:
959
+ Max: 100
960
+ AllowURI: true
961
+ Metrics/MethodLength:
962
+ Enabled: false
963
+ Metrics/ModuleLength:
964
+ Description: Avoid modules longer than 100 lines of code.
965
+ Enabled: false
966
+ CountComments: false
967
+ Max: 100
968
+ Metrics/ParameterLists:
969
+ Description: Avoid parameter lists longer than three or four parameters.
970
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#too-many-params
971
+ Enabled: false
972
+ Max: 5
973
+ CountKeywordArgs: true
974
+ Metrics/PerceivedComplexity:
975
+ Description: A complexity metric geared towards measuring complexity for a human
976
+ reader.
977
+ Enabled: false
978
+ Max: 7
979
+ require:
980
+ - rubocop-rspec
981
+ RSpec/AlignLeftLetBrace:
982
+ Description: Checks that left braces for adjacent single line lets are aligned.
983
+ Enabled: false
984
+ RSpec/AlignRightLetBrace:
985
+ Description: Checks that right braces for adjacent single line lets are aligned.
986
+ Enabled: false
987
+ RSpec/AnyInstance:
988
+ Description: Prefer instance doubles over stubbing any instance of a class
989
+ Enabled: false
990
+ RSpec/AroundBlock:
991
+ Description: Checks that around blocks actually run the test.
992
+ Enabled: true
993
+ RSpec/Be:
994
+ Description: Check for expectations where `be` is used without argument.
995
+ Enabled: true
996
+ RSpec/BeEql:
997
+ Description: Check for expectations where `be(...)` can replace `eql(...)`.
998
+ Enabled: false
999
+ RSpec/BeforeAfterAll:
1000
+ Description: Check that before/after(:all) isn't being used.
1001
+ Enabled: true
1002
+ Exclude:
1003
+ - spec/spec_helper.rb
1004
+ - spec/rails_helper.rb
1005
+ - spec/support/**/*.rb
1006
+ RSpec/ContextWording:
1007
+ Description: "`context` block descriptions should start with 'when', or 'with'."
1008
+ Enabled: false
1009
+ RSpec/DescribeClass:
1010
+ Description: Check that the first argument to the top level describe is the tested
1011
+ class or module.
1012
+ Enabled: false
1013
+ RSpec/DescribeMethod:
1014
+ Description: Checks that the second argument to top level describe is the tested
1015
+ method name.
1016
+ Enabled: false
1017
+ RSpec/DescribeSymbol:
1018
+ Description: Avoid describing symbols.
1019
+ Enabled: true
1020
+ RSpec/DescribedClass:
1021
+ Description: Use `described_class` for tested class / module
1022
+ Enabled: false
1023
+ RSpec/EmptyExampleGroup:
1024
+ Description: Checks if an example group does not include any tests.
1025
+ Enabled: true
1026
+ CustomIncludeMethods: []
1027
+ RSpec/EmptyLineAfterExampleGroup:
1028
+ Description: Checks if there is an empty line after example group blocks.
1029
+ Enabled: true
1030
+ RSpec/EmptyLineAfterFinalLet:
1031
+ Description: Checks if there is an empty line after the last let block.
1032
+ Enabled: true
1033
+ RSpec/EmptyLineAfterHook:
1034
+ Description: Checks if there is an empty line after hook blocks.
1035
+ Enabled: true
1036
+ RSpec/EmptyLineAfterSubject:
1037
+ Description: Checks if there is an empty line after subject block.
1038
+ Enabled: true
1039
+ RSpec/ExampleLength:
1040
+ Description: A long example is usually more difficult to understand. Consider extracting
1041
+ out some behaviour, e.g. with a `let` block, or a helper method.
1042
+ Enabled: false
1043
+ RSpec/ExampleWording:
1044
+ Description: Do not use should when describing your tests.
1045
+ Enabled: true
1046
+ CustomTransform:
1047
+ be: is
1048
+ have: has
1049
+ not: does not
1050
+ NOT: does not
1051
+ automatically: automatically
1052
+ correctly: correctly
1053
+ successfully: successfully
1054
+ only: only
1055
+ properly: properly
1056
+ response: responds
1057
+ be redirect: redirects
1058
+ IgnoredWords: []
1059
+ RSpec/ExpectActual:
1060
+ Description: Checks for `expect(...)` calls containing literal values.
1061
+ Enabled: true
1062
+ Exclude:
1063
+ - spec/routing/**/*
1064
+ RSpec/ExpectInHook:
1065
+ Enabled: true
1066
+ Description: Do not use `expect` in hooks such as `before`.
1067
+ RSpec/ExpectOutput:
1068
+ Description: Checks for opportunities to use `expect { ... }.to output`.
1069
+ Enabled: false
1070
+ RSpec/FilePath:
1071
+ Description: Checks the file and folder naming of the spec file.
1072
+ Enabled: false
1073
+ CustomTransform:
1074
+ RuboCop: rubocop
1075
+ RSpec: rspec
1076
+ RSpec/Focus:
1077
+ Description: Checks if examples are focused.
1078
+ Enabled: false
1079
+ RSpec/HookArgument:
1080
+ Description: Checks the arguments passed to `before`, `around`, and `after`.
1081
+ Enabled: false
1082
+ EnforcedStyle: implicit
1083
+ SupportedStyles:
1084
+ - implicit
1085
+ - each
1086
+ - example
1087
+ RSpec/HooksBeforeExamples:
1088
+ Description: Checks for before/around/after hooks that come after an example.
1089
+ Enabled: true
1090
+ RSpec/ImplicitExpect:
1091
+ Description: Check that a consistent implicit expectation style is used.
1092
+ Enabled: false
1093
+ EnforcedStyle: is_expected
1094
+ SupportedStyles:
1095
+ - is_expected
1096
+ - should
1097
+ RSpec/ImplicitSubject:
1098
+ Description: Checks for usage of implicit subject (`is_expected` / `should`).
1099
+ Enabled: false
1100
+ RSpec/InstanceSpy:
1101
+ Description: Checks for `instance_double` used with `have_received`.
1102
+ Enabled: false
1103
+ RSpec/InstanceVariable:
1104
+ Description: Checks for the usage of instance variables.
1105
+ Enabled: false
1106
+ RSpec/InvalidPredicateMatcher:
1107
+ Description: Checks invalid usage for predicate matcher.
1108
+ Enabled: false
1109
+ RSpec/ItBehavesLike:
1110
+ Description: Checks that only one `it_behaves_like` style is used.
1111
+ Enabled: false
1112
+ EnforcedStyle: it_behaves_like
1113
+ SupportedStyles:
1114
+ - it_behaves_like
1115
+ - it_should_behave_like
1116
+ RSpec/IteratedExpectation:
1117
+ Description: Check that `all` matcher is used instead of iterating over an array.
1118
+ Enabled: false
1119
+ RSpec/LeadingSubject:
1120
+ Description: Checks for `subject` definitions that come after `let` definitions.
1121
+ Enabled: true
1122
+ RSpec/LetBeforeExamples:
1123
+ Description: Checks for `let` definitions that come after an example.
1124
+ Enabled: true
1125
+ RSpec/LetSetup:
1126
+ Description: Checks unreferenced `let!` calls being used for test setup.
1127
+ Enabled: false
1128
+ RSpec/MessageChain:
1129
+ Description: Check that chains of messages are not being stubbed.
1130
+ Enabled: false
1131
+ RSpec/MessageExpectation:
1132
+ Description: Checks for consistent message expectation style.
1133
+ Enabled: false
1134
+ EnforcedStyle: allow
1135
+ SupportedStyles:
1136
+ - allow
1137
+ - expect
1138
+ RSpec/MessageSpies:
1139
+ Description: Checks that message expectations are set using spies.
1140
+ Enabled: false
1141
+ EnforcedStyle: have_received
1142
+ SupportedStyles:
1143
+ - have_received
1144
+ - receive
1145
+ RSpec/MissingExampleGroupArgument:
1146
+ Description: Checks that the first argument to an example group is not empty.
1147
+ Enabled: true
1148
+ RSpec/MultipleDescribes:
1149
+ Description: Checks for multiple top level describes.
1150
+ Enabled: true
1151
+ RSpec/MultipleExpectations:
1152
+ Description: Checks if examples contain too many `expect` calls.
1153
+ Enabled: false
1154
+ Max: 1
1155
+ RSpec/MultipleSubjects:
1156
+ Description: Checks if an example group defines `subject` multiple times.
1157
+ Enabled: true
1158
+ RSpec/NamedSubject:
1159
+ Description: Checks for explicitly referenced test subjects.
1160
+ Enabled: false
1161
+ RSpec/NestedGroups:
1162
+ Description: Checks for nested example groups.
1163
+ Enabled: false
1164
+ Max: 3
1165
+ RSpec/ReceiveNever:
1166
+ Description: Prefer `not_to receive(…)` over `receive(…).never`.
1167
+ Enabled: true
1168
+ RSpec/NotToNot:
1169
+ Description: Enforces the usage of the same method on all negative message expectations.
1170
+ Enabled: true
1171
+ EnforcedStyle: not_to
1172
+ SupportedStyles:
1173
+ - not_to
1174
+ - to_not
1175
+ RSpec/OverwritingSetup:
1176
+ Enabled: false
1177
+ Description: Checks if there is a let/subject that overwrites an existing one.
1178
+ RSpec/Pending:
1179
+ Description: Checks for any pending or skipped examples.
1180
+ Enabled: false
1181
+ RSpec/PredicateMatcher:
1182
+ Description: Prefer using predicate matcher over using predicate method directly.
1183
+ Enabled: false
1184
+ Strict: true
1185
+ EnforcedStyle: inflected
1186
+ SupportedStyles:
1187
+ - inflected
1188
+ - explicit
1189
+ RSpec/ReceiveCounts:
1190
+ Description: Check for `once` and `twice` receive counts matchers usage.
1191
+ Enabled: false
1192
+ RSpec/RepeatedDescription:
1193
+ Description: Check for repeated description strings in example groups.
1194
+ Enabled: true
1195
+ RSpec/RepeatedExample:
1196
+ Enabled: true
1197
+ Description: Check for repeated examples within example groups.
1198
+ RSpec/ReturnFromStub:
1199
+ Enabled: true
1200
+ Description: Checks for consistent style of stub's return setting.
1201
+ EnforcedStyle: and_return
1202
+ SupportedStyles:
1203
+ - and_return
1204
+ - block
1205
+ RSpec/ScatteredLet:
1206
+ Description: Checks for let scattered across the example group.
1207
+ Enabled: true
1208
+ RSpec/ScatteredSetup:
1209
+ Description: Checks for setup scattered across multiple hooks in an example group.
1210
+ Enabled: true
1211
+ RSpec/SharedContext:
1212
+ Description: Checks for proper shared_context and shared_examples usage.
1213
+ Enabled: false
1214
+ RSpec/SharedExamples:
1215
+ Description: Enforces use of string to titleize shared examples.
1216
+ Enabled: true
1217
+ RSpec/SingleArgumentMessageChain:
1218
+ Description: Checks that chains of messages contain more than one element.
1219
+ Enabled: true
1220
+ RSpec/SubjectStub:
1221
+ Description: Checks for stubbed test subjects.
1222
+ Enabled: false
1223
+ RSpec/UnspecifiedException:
1224
+ Description: Checks for a specified error in checking raised errors.
1225
+ Enabled: false
1226
+ RSpec/VerifiedDoubles:
1227
+ Description: Prefer using verifying doubles over normal doubles.
1228
+ Enabled: false
1229
+ RSpec/VoidExpect:
1230
+ Description: This cop checks void `expect()`.
1231
+ Enabled: false
1232
+ Capybara/CurrentPathExpectation:
1233
+ Description: Checks that no expectations are set on Capybara's `current_path`.
1234
+ Enabled: false
1235
+ Capybara/FeatureMethods:
1236
+ Description: Checks for consistent method usage in feature specs.
1237
+ Enabled: false
1238
+ FactoryBot/AttributeDefinedStatically:
1239
+ Description: Always declare attribute values as blocks.
1240
+ Enabled: false
1241
+ FactoryBot/CreateList:
1242
+ Description: Checks for create_list usage.
1243
+ Enabled: true
1244
+ Naming/AccessorMethodName:
1245
+ Description: Check the naming of accessor methods for get_/set_.
1246
+ Enabled: false
1247
+ Naming/AsciiIdentifiers:
1248
+ Description: Use only ascii symbols in identifiers.
1249
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#english-identifiers
1250
+ Enabled: true
1251
+ Naming/BinaryOperatorParameterName:
1252
+ Description: When defining binary operators, name the argument other.
1253
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#other-arg
1254
+ Enabled: false
1255
+ Naming/ClassAndModuleCamelCase:
1256
+ Description: Use CamelCase for classes and modules.
1257
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#camelcase-classes
1258
+ Enabled: true
1259
+ Naming/ConstantName:
1260
+ Description: Constants should use SCREAMING_SNAKE_CASE.
1261
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#screaming-snake-case
1262
+ Enabled: false
1263
+ Naming/FileName:
1264
+ Description: Use snake_case for source file names.
1265
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#snake-case-files
1266
+ Enabled: false
1267
+ Naming/HeredocDelimiterCase:
1268
+ Enabled: false
1269
+ Naming/HeredocDelimiterNaming:
1270
+ Enabled: false
1271
+ Naming/MemoizedInstanceVariableName:
1272
+ Description: Memoized method name should match memo instance variable name.
1273
+ Enabled: false
1274
+ Naming/MethodName:
1275
+ Description: Use the configured style when naming methods.
1276
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#snake-case-symbols-methods-vars
1277
+ Enabled: false
1278
+ EnforcedStyle: snake_case
1279
+ SupportedStyles:
1280
+ - snake_case
1281
+ - camelCase
1282
+ Naming/PredicateName:
1283
+ Description: Check the names of predicate methods.
1284
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#bool-methods-qmark
1285
+ Enabled: false
1286
+ NamePrefix:
1287
+ - is_
1288
+ - has_
1289
+ - have_
1290
+ NamePrefixBlacklist:
1291
+ - is_
1292
+ - has_
1293
+ - have_
1294
+ Naming/UncommunicativeBlockParamName:
1295
+ Description: Checks for block parameter names that contain capital letters, end
1296
+ in numbers, or do not meet a minimal length.
1297
+ Enabled: false
1298
+ Naming/UncommunicativeMethodParamName:
1299
+ Description: Checks for method parameter names that contain capital letters, end
1300
+ in numbers, or do not meet a minimal length.
1301
+ Enabled: false
1302
+ Naming/VariableName:
1303
+ Description: Use the configured style when naming variables.
1304
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#snake-case-symbols-methods-vars
1305
+ Enabled: true
1306
+ EnforcedStyle: snake_case
1307
+ SupportedStyles:
1308
+ - snake_case
1309
+ - camelCase
1310
+ Naming/VariableNumber:
1311
+ Enabled: false
1312
+ Layout/AccessModifierIndentation:
1313
+ Description: Check indentation of private/protected visibility modifiers.
1314
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#indent-public-private-protected
1315
+ Enabled: true
1316
+ EnforcedStyle: indent
1317
+ SupportedStyles:
1318
+ - outdent
1319
+ - indent
1320
+ Layout/AlignArray:
1321
+ Description: Align the elements of an array literal if they span more than one line.
1322
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#align-multiline-arrays
1323
+ Enabled: true
1324
+ Layout/AlignHash:
1325
+ Description: Align the elements of a hash literal if they span more than one line.
1326
+ Enabled: true
1327
+ EnforcedHashRocketStyle: key
1328
+ EnforcedColonStyle: key
1329
+ EnforcedLastArgumentHashStyle: always_inspect
1330
+ SupportedLastArgumentHashStyles:
1331
+ - always_inspect
1332
+ - always_ignore
1333
+ - ignore_implicit
1334
+ - ignore_explicit
1335
+ Layout/AlignParameters:
1336
+ Description: Align the parameters of a method call if they span more than one line.
1337
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-double-indent
1338
+ Enabled: true
1339
+ EnforcedStyle: with_first_parameter
1340
+ SupportedStyles:
1341
+ - with_first_parameter
1342
+ - with_fixed_indentation
1343
+ Layout/BlockAlignment:
1344
+ Description: Align block ends correctly.
1345
+ Enabled: true
1346
+ Layout/BlockEndNewline:
1347
+ Description: Put end statement of multiline block on its own line.
1348
+ Enabled: true
1349
+ Layout/CaseIndentation:
1350
+ Description: Indentation of when in a case/when/[else/]end.
1351
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#indent-when-to-case
1352
+ Enabled: true
1353
+ EnforcedStyle: case
1354
+ IndentOneStep: false
1355
+ Layout/ClassStructure:
1356
+ Enabled: false
1357
+ Categories:
1358
+ module_inclusion:
1359
+ - include
1360
+ - prepend
1361
+ - extend
1362
+ ExpectedOrder:
1363
+ - module_inclusion
1364
+ - constants
1365
+ - public_class_methods
1366
+ - initializer
1367
+ - instance_methods
1368
+ - protected_methods
1369
+ - private_methods
1370
+ Layout/ClosingHeredocIndentation:
1371
+ Enabled: false
1372
+ Layout/ClosingParenthesisIndentation:
1373
+ Description: Checks the indentation of hanging closing parentheses.
1374
+ Enabled: true
1375
+ Layout/CommentIndentation:
1376
+ Description: Indentation of comments.
1377
+ Enabled: true
1378
+ Layout/ConditionPosition:
1379
+ Description: Checks for condition placed in a confusing position relative to the
1380
+ keyword.
1381
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#same-line-condition
1382
+ Enabled: true
1383
+ Layout/DefEndAlignment:
1384
+ Description: Align ends corresponding to defs correctly.
1385
+ Enabled: true
1386
+ EnforcedStyleAlignWith: start_of_line
1387
+ AutoCorrect: false
1388
+ Layout/DotPosition:
1389
+ Enabled: true
1390
+ EnforcedStyle: trailing
1391
+ Layout/ElseAlignment:
1392
+ Description: Align elses and elsifs correctly.
1393
+ Enabled: true
1394
+ Layout/EmptyComment:
1395
+ Description: Checks empty comment.
1396
+ Enabled: true
1397
+ Layout/EmptyLineAfterMagicComment:
1398
+ Enabled: true
1399
+ Layout/EmptyLineBetweenDefs:
1400
+ Description: Use empty lines between defs.
1401
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#empty-lines-between-methods
1402
+ Enabled: true
1403
+ AllowAdjacentOneLineDefs: false
1404
+ Layout/EmptyLines:
1405
+ Description: Don't use several empty lines in a row.
1406
+ Enabled: true
1407
+ Layout/EmptyLineAfterGuardClause:
1408
+ Enabled: false
1409
+ Layout/EmptyLinesAroundAccessModifier:
1410
+ Description: Keep blank lines around access modifiers.
1411
+ Enabled: true
1412
+ Layout/EmptyLinesAroundArguments:
1413
+ Description: Keeps track of empty lines around method arguments.
1414
+ Enabled: false
1415
+ Layout/EmptyLinesAroundBeginBody:
1416
+ Enabled: true
1417
+ Layout/EmptyLinesAroundBlockBody:
1418
+ Description: Keeps track of empty lines around block bodies.
1419
+ Enabled: true
1420
+ EnforcedStyle: no_empty_lines
1421
+ SupportedStyles:
1422
+ - empty_lines
1423
+ - no_empty_lines
1424
+ Layout/EmptyLinesAroundClassBody:
1425
+ Description: Keeps track of empty lines around class bodies.
1426
+ Enabled: true
1427
+ EnforcedStyle: no_empty_lines
1428
+ SupportedStyles:
1429
+ - beginning_only
1430
+ - empty_lines
1431
+ - end_only
1432
+ - no_empty_lines
1433
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
1434
+ Enabled: false
1435
+ Layout/EmptyLinesAroundMethodBody:
1436
+ Description: Keeps track of empty lines around method bodies.
1437
+ Enabled: true
1438
+ Layout/EmptyLinesAroundModuleBody:
1439
+ Description: Keeps track of empty lines around module bodies.
1440
+ Enabled: true
1441
+ EnforcedStyle: no_empty_lines
1442
+ SupportedStyles:
1443
+ - empty_lines
1444
+ - no_empty_lines
1445
+ Layout/EndAlignment:
1446
+ Description: Align ends correctly.
1447
+ Enabled: true
1448
+ EnforcedStyleAlignWith: keyword
1449
+ AutoCorrect: false
1450
+ Layout/EndOfLine:
1451
+ Description: Use Unix-style line endings.
1452
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#crlf
1453
+ Enabled: false
1454
+ Layout/ExtraSpacing:
1455
+ Description: Do not use unnecessary spacing.
1456
+ Enabled: true
1457
+ AllowForAlignment: true
1458
+ Layout/FirstArrayElementLineBreak:
1459
+ Description: Checks for a line break before the first element in a multi-line array.
1460
+ Enabled: true
1461
+ Layout/FirstHashElementLineBreak:
1462
+ Description: Checks for a line break before the first element in a multi-line hash.
1463
+ Enabled: true
1464
+ Layout/FirstMethodArgumentLineBreak:
1465
+ Description: Checks for a line break before the first argument in a multi-line method
1466
+ call.
1467
+ Enabled: false
1468
+ Layout/FirstMethodParameterLineBreak:
1469
+ Description: Checks for a line break before the first parameter in a multi-line
1470
+ method parameter definition.
1471
+ Enabled: false
1472
+ Layout/IndentFirstArgument:
1473
+ Description: Checks the indentation of the first parameter in a method call.
1474
+ Enabled: true
1475
+ EnforcedStyle: consistent
1476
+ SupportedStyles:
1477
+ - consistent
1478
+ - consistent_relative_to_receiver
1479
+ - special_for_inner_method_call
1480
+ - special_for_inner_method_call_in_parentheses
1481
+ Layout/IndentFirstArrayElement:
1482
+ Description: Checks the indentation of the first element in an array literal.
1483
+ Enabled: true
1484
+ EnforcedStyle: consistent
1485
+ Layout/IndentAssignment:
1486
+ Description: Checks the indentation of the first line of the right-hand-side of
1487
+ a multi-line assignment.
1488
+ Enabled: true
1489
+ IndentationWidth:
1490
+ Layout/IndentFirstHashElement:
1491
+ Description: Checks the indentation of the first key in a hash literal.
1492
+ Enabled: true
1493
+ EnforcedStyle: consistent
1494
+ SupportedStyles:
1495
+ - special_inside_parentheses
1496
+ - consistent
1497
+ Layout/IndentHeredoc:
1498
+ Enabled: false
1499
+ Layout/IndentationConsistency:
1500
+ Description: Keep indentation straight.
1501
+ Enabled: true
1502
+ EnforcedStyle: normal
1503
+ SupportedStyles:
1504
+ - normal
1505
+ - rails
1506
+ Layout/IndentationWidth:
1507
+ Description: Use 2 spaces for indentation.
1508
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-indentation
1509
+ Enabled: true
1510
+ Width: 2
1511
+ Layout/InitialIndentation:
1512
+ Description: Checks the indentation of the first non-blank non-comment line in a
1513
+ file.
1514
+ Enabled: true
1515
+ Layout/LeadingBlankLines:
1516
+ Enabled: true
1517
+ Layout/LeadingCommentSpace:
1518
+ Description: Comments should start with a space.
1519
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#hash-space
1520
+ Enabled: true
1521
+ Layout/MultilineArrayBraceLayout:
1522
+ Description: Checks that the closing brace in an array literal is symmetrical with
1523
+ respect to the opening brace and the array elements.
1524
+ Enabled: true
1525
+ Layout/MultilineAssignmentLayout:
1526
+ Description: Check for a newline after the assignment operator in multi-line assignments.
1527
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#indent-conditional-assignment
1528
+ Enabled: false
1529
+ SupportedTypes:
1530
+ - block
1531
+ - case
1532
+ - class
1533
+ - if
1534
+ - kwbegin
1535
+ - module
1536
+ EnforcedStyle: new_line
1537
+ SupportedStyles:
1538
+ - same_line
1539
+ - new_line
1540
+ Layout/MultilineBlockLayout:
1541
+ Description: Ensures newlines after multiline block do statements.
1542
+ Enabled: true
1543
+ Layout/MultilineHashBraceLayout:
1544
+ Description: Checks that the closing brace in a hash literal is symmetrical with
1545
+ respect to the opening brace and the hash elements.
1546
+ Enabled: true
1547
+ Layout/MultilineMethodCallBraceLayout:
1548
+ Description: Checks that the closing brace in a method call is symmetrical with
1549
+ respect to the opening brace and the method arguments.
1550
+ Enabled: true
1551
+ EnforcedStyle: symmetrical
1552
+ Layout/MultilineMethodCallIndentation:
1553
+ Description: Checks indentation of method calls with the dot operator that span
1554
+ more than one line.
1555
+ Enabled: true
1556
+ EnforcedStyle: indented
1557
+ SupportedStyles:
1558
+ - aligned
1559
+ - indented
1560
+ IndentationWidth:
1561
+ Layout/MultilineMethodDefinitionBraceLayout:
1562
+ Description: Checks that the closing brace in a method definition is symmetrical
1563
+ with respect to the opening brace and the method parametters.
1564
+ Enabled: true
1565
+ Layout/MultilineOperationIndentation:
1566
+ Enabled: false
1567
+ EnforcedStyle: indented
1568
+ Layout/RescueEnsureAlignment:
1569
+ Description: Align rescues and ensures correctly.
1570
+ Enabled: true
1571
+ Layout/SpaceAfterColon:
1572
+ Description: Use spaces after colons.
1573
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
1574
+ Enabled: true
1575
+ Layout/SpaceAfterComma:
1576
+ Description: Use spaces after commas.
1577
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
1578
+ Enabled: true
1579
+ Layout/SpaceAfterMethodName:
1580
+ Description: Do not put a space between a method name and the opening parenthesis
1581
+ in a method definition.
1582
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#parens-no-spaces
1583
+ Enabled: true
1584
+ Layout/SpaceAfterNot:
1585
+ Description: Tracks redundant space after the ! operator.
1586
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-space-bang
1587
+ Enabled: true
1588
+ Layout/SpaceAfterSemicolon:
1589
+ Description: Use spaces after semicolons.
1590
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
1591
+ Enabled: true
1592
+ Layout/SpaceAroundBlockParameters:
1593
+ Description: Checks the spacing inside and after block parameters pipes.
1594
+ Enabled: true
1595
+ EnforcedStyleInsidePipes: no_space
1596
+ Layout/SpaceAroundEqualsInParameterDefault:
1597
+ Description: Checks that the equals signs in parameter default assignments have
1598
+ or don't have surrounding space depending on configuration.
1599
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-around-equals
1600
+ Enabled: true
1601
+ EnforcedStyle: space
1602
+ SupportedStyles:
1603
+ - space
1604
+ - no_space
1605
+ Layout/SpaceAroundKeyword:
1606
+ Description: Use a space around keywords if appropriate.
1607
+ Enabled: true
1608
+ Layout/SpaceAroundOperators:
1609
+ Description: Use a single space around operators.
1610
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
1611
+ Enabled: true
1612
+ AllowForAlignment: true
1613
+ Layout/SpaceBeforeBlockBraces:
1614
+ Description: Checks that the left block brace has or doesn't have space before it.
1615
+ Enabled: true
1616
+ EnforcedStyle: space
1617
+ SupportedStyles:
1618
+ - space
1619
+ - no_space
1620
+ Layout/SpaceBeforeComma:
1621
+ Description: No spaces before commas.
1622
+ Enabled: true
1623
+ Layout/SpaceBeforeComment:
1624
+ Description: Checks for missing space between code and a comment on the same line.
1625
+ Enabled: true
1626
+ Layout/SpaceBeforeFirstArg:
1627
+ Description: Put a space between a method name and the first argument in a method
1628
+ call without parentheses.
1629
+ Enabled: true
1630
+ Layout/SpaceBeforeSemicolon:
1631
+ Description: No spaces before semicolons.
1632
+ Enabled: true
1633
+ Layout/SpaceInLambdaLiteral:
1634
+ Enabled: false
1635
+ Layout/SpaceInsideArrayPercentLiteral:
1636
+ Enabled: false
1637
+ Layout/SpaceInsideBlockBraces:
1638
+ Description: Checks that block braces have or don't have surrounding space. For
1639
+ blocks taking parameters, checks that the left brace has or doesn't have trailing
1640
+ space.
1641
+ Enabled: true
1642
+ EnforcedStyle: space
1643
+ SupportedStyles:
1644
+ - space
1645
+ - no_space
1646
+ EnforcedStyleForEmptyBraces: no_space
1647
+ SpaceBeforeBlockParameters: true
1648
+ Layout/SpaceInsideParens:
1649
+ Description: No spaces after ( or before ).
1650
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-spaces-braces
1651
+ Enabled: true
1652
+ Layout/SpaceInsideArrayLiteralBrackets:
1653
+ EnforcedStyle: no_space
1654
+ SupportedStyles:
1655
+ - space
1656
+ - no_space
1657
+ - compact
1658
+ EnforcedStyleForEmptyBrackets: no_space
1659
+ SupportedStylesForEmptyBrackets:
1660
+ - space
1661
+ - no_space
1662
+ Enabled: true
1663
+ Layout/SpaceInsideReferenceBrackets:
1664
+ EnforcedStyleForEmptyBrackets: no_space
1665
+ SupportedStyles:
1666
+ - space
1667
+ - no_space
1668
+ Enabled: true
1669
+ Layout/SpaceInsideHashLiteralBraces:
1670
+ Description: Use spaces inside hash literal braces - or don't.
1671
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
1672
+ Enabled: true
1673
+ EnforcedStyle: space
1674
+ EnforcedStyleForEmptyBraces: no_space
1675
+ SupportedStyles:
1676
+ - space
1677
+ - no_space
1678
+ Layout/SpaceInsidePercentLiteralDelimiters:
1679
+ Description: No unnecessary spaces inside delimiters of %i/%w/%x literals.
1680
+ Enabled: true
1681
+ Layout/SpaceInsideRangeLiteral:
1682
+ Description: No spaces inside range literals.
1683
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-space-inside-range-literals
1684
+ Enabled: true
1685
+ Layout/SpaceInsideStringInterpolation:
1686
+ Description: Checks for padding/surrounding spaces inside string interpolation.
1687
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#string-interpolation
1688
+ Enabled: true
1689
+ EnforcedStyle: no_space
1690
+ SupportedStyles:
1691
+ - space
1692
+ - no_space
1693
+ Layout/Tab:
1694
+ Description: No hard tabs.
1695
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#spaces-indentation
1696
+ Enabled: true
1697
+ Layout/TrailingBlankLines:
1698
+ Description: Checks trailing blank lines and final newline.
1699
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#newline-eof
1700
+ Enabled: true
1701
+ EnforcedStyle: final_newline
1702
+ SupportedStyles:
1703
+ - final_newline
1704
+ - final_blank_line
1705
+ Layout/TrailingWhitespace:
1706
+ Description: Avoid trailing whitespace.
1707
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-trailing-whitespace
1708
+ Enabled: true
1709
+ Gemspec/OrderedDependencies:
1710
+ Enabled: false
1711
+ Gemspec/RequiredRubyVersion:
1712
+ Description: Checks that `required_ruby_version` of gemspec and `TargetRubyVersion`
1713
+ of .rubocop.yml are equal.
1714
+ Enabled: false
1715
+ Include:
1716
+ - "**/*.gemspec"