update_all_scope 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c15858b4327fe7ab75e43ae03ec44d22bb39ad2d
4
+ data.tar.gz: bfbe036342968b90b65f5f4d21f27060cd2303af
5
+ SHA512:
6
+ metadata.gz: b6751d843c3482bccfcc82af3d941913ef1112eb9e29e18d34165cba0f999a552587d629552c70271a06ab8d30dc1874530f8e2bc4a716c5746aaa48cd48f8c2
7
+ data.tar.gz: c45ef4f161f1553f6c4dc9ac93351cdd6d3ed731d99f85946043b352c0e3bccfbc4cb8f9ed585a1f15601e56f253cdcfb93232d7854153ce3411922d0bacbe62
@@ -0,0 +1,50 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+ *.bridgesupport
21
+ build-iPhoneOS/
22
+ build-iPhoneSimulator/
23
+
24
+ ## Specific to RubyMotion (use of CocoaPods):
25
+ #
26
+ # We recommend against adding the Pods directory to your .gitignore. However
27
+ # you should judge for yourself, the pros and cons are mentioned at:
28
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
+ #
30
+ # vendor/Pods/
31
+
32
+ ## Documentation cache and generated files:
33
+ /.yardoc/
34
+ /_yardoc/
35
+ /doc/
36
+ /rdoc/
37
+
38
+ ## Environment normalization:
39
+ /.bundle/
40
+ /vendor/bundle
41
+ /lib/bundler/man/
42
+
43
+ # for a library or gem, you might want to ignore these files since the code is
44
+ # intended to run in multiple environments; otherwise, check them in:
45
+ # Gemfile.lock
46
+ # .ruby-version
47
+ # .ruby-gemset
48
+
49
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
+ .rvmrc
@@ -0,0 +1,1228 @@
1
+ AllCops:
2
+ DisabledByDefault: true
3
+ Exclude: []
4
+
5
+ #################### Lint ################################
6
+
7
+ Lint/AmbiguousOperator:
8
+ Description: >-
9
+ Checks for ambiguous operators in the first argument of a
10
+ method invocation without parentheses.
11
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
12
+ Enabled: true
13
+
14
+ Lint/AmbiguousRegexpLiteral:
15
+ Description: >-
16
+ Checks for ambiguous regexp literals in the first argument of
17
+ a method invocation without parenthesis.
18
+ Enabled: true
19
+
20
+ Lint/AssignmentInCondition:
21
+ Description: "Don't use assignment in conditions."
22
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
23
+ Enabled: true
24
+
25
+ Layout/BlockAlignment:
26
+ Description: 'Align block ends correctly.'
27
+ Enabled: true
28
+
29
+ Lint/CircularArgumentReference:
30
+ Description: "Don't refer to the keyword argument in the default value."
31
+ Enabled: true
32
+
33
+ Layout/ConditionPosition:
34
+ Description: >-
35
+ Checks for condition placed in a confusing position relative to
36
+ the keyword.
37
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
38
+ Enabled: true
39
+
40
+ Lint/Debugger:
41
+ Description: 'Check for debugger calls.'
42
+ Enabled: true
43
+
44
+ Layout/DefEndAlignment:
45
+ Description: 'Align ends corresponding to defs correctly.'
46
+ Enabled: true
47
+
48
+ Lint/DeprecatedClassMethods:
49
+ Description: 'Check for deprecated class method calls.'
50
+ Enabled: true
51
+
52
+ Lint/DuplicateMethods:
53
+ Description: 'Check for duplicate methods calls.'
54
+ Enabled: true
55
+
56
+ Lint/EachWithObjectArgument:
57
+ Description: 'Check for immutable argument given to each_with_object.'
58
+ Enabled: true
59
+
60
+ Lint/ElseLayout:
61
+ Description: 'Check for odd code arrangement in an else block.'
62
+ Enabled: true
63
+
64
+ Lint/EmptyEnsure:
65
+ Description: 'Checks for empty ensure block.'
66
+ Enabled: true
67
+
68
+ Lint/EmptyInterpolation:
69
+ Description: 'Checks for empty string interpolation.'
70
+ Enabled: true
71
+
72
+ Layout/EndAlignment:
73
+ Description: 'Align ends correctly.'
74
+ Enabled: true
75
+
76
+ Lint/EndInMethod:
77
+ Description: 'END blocks should not be placed inside method definitions.'
78
+ Enabled: true
79
+
80
+ Lint/EnsureReturn:
81
+ Description: 'Do not use return in an ensure block.'
82
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
83
+ Enabled: true
84
+
85
+ Security/Eval:
86
+ Description: 'The use of eval represents a serious security risk.'
87
+ Enabled: true
88
+
89
+ Lint/FormatParameterMismatch:
90
+ Description: 'The number of parameters to format/sprint must match the fields.'
91
+ Enabled: true
92
+
93
+ Lint/HandleExceptions:
94
+ Description: "Don't suppress exception."
95
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
96
+ Enabled: true
97
+
98
+ Lint/LiteralInInterpolation:
99
+ Description: 'Checks for literals used in interpolation.'
100
+ Enabled: true
101
+
102
+ Lint/Loop:
103
+ Description: >-
104
+ Use Kernel#loop with break rather than begin/end/until or
105
+ begin/end/while for post-loop tests.
106
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
107
+ Enabled: true
108
+
109
+ Lint/NestedMethodDefinition:
110
+ Description: 'Do not use nested method definitions.'
111
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
112
+ Enabled: true
113
+
114
+ Lint/NonLocalExitFromIterator:
115
+ Description: 'Do not use return in iterator to cause non-local exit.'
116
+ Enabled: true
117
+
118
+ Lint/ParenthesesAsGroupedExpression:
119
+ Description: >-
120
+ Checks for method calls with a space before the opening
121
+ parenthesis.
122
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
123
+ Enabled: true
124
+
125
+ Lint/RequireParentheses:
126
+ Description: >-
127
+ Use parentheses in the method call to avoid confusion
128
+ about precedence.
129
+ Enabled: true
130
+
131
+ Lint/RescueException:
132
+ Description: 'Avoid rescuing the Exception class.'
133
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
134
+ Enabled: true
135
+
136
+ Lint/ShadowingOuterLocalVariable:
137
+ Description: >-
138
+ Do not use the same name as outer local variable
139
+ for block arguments or block local variables.
140
+ Enabled: true
141
+
142
+ Lint/StringConversionInInterpolation:
143
+ Description: 'Checks for Object#to_s usage in string interpolation.'
144
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
145
+ Enabled: true
146
+
147
+ Lint/UnderscorePrefixedVariableName:
148
+ Description: 'Do not use prefix `_` for a variable that is used.'
149
+ Enabled: true
150
+
151
+ Lint/UnneededCopDisableDirective:
152
+ Description: >-
153
+ Checks for rubocop:disable comments that can be removed.
154
+ Note: this cop is not disabled when disabling all cops.
155
+ It must be explicitly disabled.
156
+ Enabled: true
157
+
158
+ Lint/UnusedBlockArgument:
159
+ Description: 'Checks for unused block arguments.'
160
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
161
+ Enabled: true
162
+
163
+ Lint/UnusedMethodArgument:
164
+ Description: 'Checks for unused method arguments.'
165
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
166
+ Enabled: true
167
+
168
+ Lint/UnreachableCode:
169
+ Description: 'Unreachable code.'
170
+ Enabled: true
171
+
172
+ Lint/UselessAccessModifier:
173
+ Description: 'Checks for useless access modifiers.'
174
+ Enabled: true
175
+
176
+ Lint/UselessAssignment:
177
+ Description: 'Checks for useless assignment to a local variable.'
178
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
179
+ Enabled: true
180
+
181
+ Lint/UselessComparison:
182
+ Description: 'Checks for comparison of something with itself.'
183
+ Enabled: true
184
+
185
+ Lint/UselessElseWithoutRescue:
186
+ Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
187
+ Enabled: true
188
+
189
+ Lint/UselessSetterCall:
190
+ Description: 'Checks for useless setter call to a local variable.'
191
+ Enabled: true
192
+
193
+ Lint/Void:
194
+ Description: 'Possible use of operator/literal/variable in void context.'
195
+ Enabled: true
196
+
197
+ ###################### Metrics ####################################
198
+
199
+ Metrics/AbcSize:
200
+ Description: >-
201
+ A calculated magnitude based on number of assignments,
202
+ branches, and conditions.
203
+ Reference: 'http://c2.com/cgi/wiki?AbcMetric'
204
+ Enabled: true
205
+ Max: 25
206
+
207
+ Metrics/BlockNesting:
208
+ Description: 'Avoid excessive block nesting'
209
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
210
+ Enabled: true
211
+ Max: 4
212
+
213
+ Metrics/ClassLength:
214
+ Description: 'Avoid classes longer than 250 lines of code.'
215
+ Enabled: true
216
+ Max: 250
217
+
218
+ Metrics/CyclomaticComplexity:
219
+ Description: >-
220
+ A complexity metric that is strongly correlated to the number
221
+ of test cases needed to validate a method.
222
+ Enabled: true
223
+
224
+ Metrics/LineLength:
225
+ Description: 'Limit lines to 120 characters.'
226
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
227
+ Max: 120
228
+ Enabled: true
229
+ Exclude:
230
+ - 'config/locales/**'
231
+
232
+ Metrics/MethodLength:
233
+ Description: 'Avoid methods longer than 30 lines of code.'
234
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
235
+ Enabled: true
236
+ Max: 30
237
+
238
+ Metrics/ModuleLength:
239
+ Description: 'Avoid modules longer than 250 lines of code.'
240
+ Enabled: true
241
+ Max: 250
242
+
243
+ Metrics/ParameterLists:
244
+ Description: 'Avoid parameter lists longer than three or four parameters.'
245
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
246
+ Enabled: true
247
+
248
+ Metrics/PerceivedComplexity:
249
+ Description: >-
250
+ A complexity metric geared towards measuring complexity for a
251
+ human reader.
252
+ Enabled: true
253
+
254
+ ##################### Performance #############################
255
+
256
+ Performance/Count:
257
+ Description: >-
258
+ Use `count` instead of `select...size`, `reject...size`,
259
+ `select...count`, `reject...count`, `select...length`,
260
+ and `reject...length`.
261
+ Enabled: true
262
+
263
+ Performance/Detect:
264
+ Description: >-
265
+ Use `detect` instead of `select.first`, `find_all.first`,
266
+ `select.last`, and `find_all.last`.
267
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
268
+ Enabled: true
269
+
270
+ Performance/FlatMap:
271
+ Description: >-
272
+ Use `Enumerable#flat_map`
273
+ instead of `Enumerable#map...Array#flatten(1)`
274
+ or `Enumberable#collect..Array#flatten(1)`
275
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
276
+ Enabled: true
277
+ EnabledForFlattenWithoutParams: false
278
+ # If enabled, this cop will warn about usages of
279
+ # `flatten` being called without any parameters.
280
+ # This can be dangerous since `flat_map` will only flatten 1 level, and
281
+ # `flatten` without any parameters can flatten multiple levels.
282
+
283
+ Performance/ReverseEach:
284
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
285
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
286
+ Enabled: true
287
+
288
+ Performance/Sample:
289
+ Description: >-
290
+ Use `sample` instead of `shuffle.first`,
291
+ `shuffle.last`, and `shuffle[Fixnum]`.
292
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
293
+ Enabled: true
294
+
295
+ Performance/Size:
296
+ Description: >-
297
+ Use `size` instead of `count` for counting
298
+ the number of elements in `Array` and `Hash`.
299
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
300
+ Enabled: true
301
+
302
+ Performance/StringReplacement:
303
+ Description: >-
304
+ Use `tr` instead of `gsub` when you are replacing the same
305
+ number of characters. Use `delete` instead of `gsub` when
306
+ you are deleting characters.
307
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
308
+ Enabled: true
309
+
310
+ ##################### Rails ##################################
311
+
312
+ Rails/ActionFilter:
313
+ Description: 'Enforces consistent use of action filter methods.'
314
+ Enabled: true
315
+
316
+ Rails/Date:
317
+ Description: >-
318
+ Checks the correct usage of date aware methods,
319
+ such as Date.today, Date.current etc.
320
+ Enabled: true
321
+
322
+ Rails/Delegate:
323
+ Description: 'Prefer delegate method for delegations.'
324
+ Enabled: true
325
+
326
+ Rails/FindBy:
327
+ Description: 'Prefer find_by over where.first.'
328
+ Enabled: true
329
+
330
+ Rails/FindEach:
331
+ Description: 'Prefer all.find_each over all.find.'
332
+ Enabled: true
333
+
334
+ Rails/HasAndBelongsToMany:
335
+ Description: 'Prefer has_many :through to has_and_belongs_to_many.'
336
+ Enabled: true
337
+
338
+ Rails/Output:
339
+ Description: 'Checks for calls to puts, print, etc.'
340
+ Enabled: true
341
+
342
+ Rails/ReadWriteAttribute:
343
+ Description: >-
344
+ Checks for read_attribute(:attr) and
345
+ write_attribute(:attr, val).
346
+ Enabled: true
347
+
348
+ Rails/ScopeArgs:
349
+ Description: 'Checks the arguments of ActiveRecord scopes.'
350
+ Enabled: true
351
+
352
+ Rails/TimeZone:
353
+ Description: 'Checks the correct usage of time zone aware methods.'
354
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
355
+ Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
356
+ Enabled: true
357
+
358
+ Rails/Validation:
359
+ Description: 'Use validates :attribute, hash of validations.'
360
+ Enabled: true
361
+
362
+ ################## Style #################################
363
+
364
+ Layout/AccessModifierIndentation:
365
+ Description: Check indentation of private/protected visibility modifiers.
366
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
367
+ Enabled: true
368
+
369
+ Naming/AccessorMethodName:
370
+ Description: Check the naming of accessor methods for get_/set_.
371
+ Enabled: false
372
+
373
+ Style/Alias:
374
+ Description: 'Use alias_method instead of alias.'
375
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
376
+ Enabled: true
377
+
378
+ Layout/AlignArray:
379
+ Description: >-
380
+ Align the elements of an array literal if they span more than
381
+ one line.
382
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
383
+ Enabled: true
384
+
385
+ Layout/AlignHash:
386
+ Description: >-
387
+ Align the elements of a hash literal if they span more than
388
+ one line.
389
+ EnforcedHashRocketStyle: table
390
+ Enabled: true
391
+
392
+ Layout/AlignParameters:
393
+ Description: >-
394
+ Align the parameters of a method call if they span more
395
+ than one line.
396
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
397
+ Enabled: true
398
+
399
+ Style/AndOr:
400
+ Description: 'Use &&/|| instead of and/or.'
401
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
402
+ Enabled: false
403
+
404
+ Style/ArrayJoin:
405
+ Description: 'Use Array#join instead of Array#*.'
406
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
407
+ Enabled: true
408
+
409
+ Style/AsciiComments:
410
+ Description: 'Use only ascii symbols in comments.'
411
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
412
+ Enabled: false
413
+
414
+ Naming/AsciiIdentifiers:
415
+ Description: 'Use only ascii symbols in identifiers.'
416
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
417
+ Enabled: true
418
+
419
+ Style/Attr:
420
+ Description: 'Checks for uses of Module#attr.'
421
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
422
+ Enabled: true
423
+
424
+ Style/BeginBlock:
425
+ Description: 'Avoid the use of BEGIN blocks.'
426
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
427
+ Enabled: true
428
+
429
+ Style/BarePercentLiterals:
430
+ Description: 'Checks if usage of %() or %Q() matches configuration.'
431
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
432
+ Enabled: true
433
+
434
+ Style/BlockComments:
435
+ Description: 'Do not use block comments.'
436
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
437
+ Enabled: true
438
+
439
+ Layout/BlockEndNewline:
440
+ Description: 'Put end statement of multiline block on its own line.'
441
+ Enabled: true
442
+
443
+ Style/BlockDelimiters:
444
+ Description: >-
445
+ Avoid using {...} for multi-line blocks (multiline chaining is
446
+ always ugly).
447
+ Prefer {...} over do...end for single-line blocks.
448
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
449
+ Enabled: true
450
+
451
+ Style/BracesAroundHashParameters:
452
+ Description: 'Enforce braces style around hash parameters.'
453
+ Enabled: true
454
+
455
+ Style/CaseEquality:
456
+ Description: 'Avoid explicit use of the case equality operator(===).'
457
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
458
+ Enabled: true
459
+
460
+ Layout/CaseIndentation:
461
+ Description: 'Indentation of when in a case/when/[else/]end.'
462
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
463
+ Enabled: true
464
+
465
+ Style/CharacterLiteral:
466
+ Description: 'Checks for uses of character literals.'
467
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
468
+ Enabled: true
469
+
470
+ Naming/ClassAndModuleCamelCase:
471
+ Description: 'Use CamelCase for classes and modules.'
472
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
473
+ Enabled: true
474
+
475
+ Style/ClassAndModuleChildren:
476
+ Description: 'Checks style of children classes and modules.'
477
+ Enabled: false
478
+
479
+ Style/ClassCheck:
480
+ Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
481
+ Enabled: true
482
+
483
+ Style/ClassMethods:
484
+ Description: 'Use self when defining module/class methods.'
485
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-class-methods'
486
+ Enabled: true
487
+
488
+ Style/ClassVars:
489
+ Description: 'Avoid the use of class variables.'
490
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
491
+ Enabled: true
492
+
493
+ Layout/ClosingParenthesisIndentation:
494
+ Description: 'Checks the indentation of hanging closing parentheses.'
495
+ Enabled: true
496
+
497
+ Style/ColonMethodCall:
498
+ Description: 'Do not use :: for method call.'
499
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
500
+ Enabled: true
501
+
502
+ Style/CommandLiteral:
503
+ Description: 'Use `` or %x around command literals.'
504
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
505
+ Enabled: true
506
+
507
+ Style/CommentAnnotation:
508
+ Description: 'Checks formatting of annotation comments.'
509
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
510
+ Enabled: true
511
+
512
+ Layout/CommentIndentation:
513
+ Description: 'Indentation of comments.'
514
+ Enabled: true
515
+
516
+ Naming/ConstantName:
517
+ Description: 'Constants should use SCREAMING_SNAKE_CASE.'
518
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
519
+ Enabled: true
520
+
521
+ Style/DefWithParentheses:
522
+ Description: 'Use def with parentheses when there are arguments.'
523
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
524
+ Enabled: true
525
+
526
+ Style/PreferredHashMethods:
527
+ Description: 'Checks for use of deprecated Hash methods.'
528
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
529
+ Enabled: true
530
+
531
+ Style/Documentation:
532
+ Description: 'Document classes and non-namespace modules.'
533
+ Enabled: false
534
+
535
+ Layout/DotPosition:
536
+ Description: 'Checks the position of the dot in multi-line method calls.'
537
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
538
+ Enabled: true
539
+
540
+ Style/DoubleNegation:
541
+ Description: 'Checks for uses of double negation (!!).'
542
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
543
+ Enabled: true
544
+
545
+ Style/EachWithObject:
546
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
547
+ Enabled: true
548
+
549
+ Layout/ElseAlignment:
550
+ Description: 'Align elses and elsifs correctly.'
551
+ Enabled: true
552
+
553
+ Style/EmptyElse:
554
+ Description: 'Avoid empty else-clauses.'
555
+ Enabled: true
556
+
557
+ Layout/EmptyLineBetweenDefs:
558
+ Description: 'Use empty lines between defs.'
559
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
560
+ Enabled: true
561
+
562
+ Layout/EmptyLines:
563
+ Description: "Don't use several empty lines in a row."
564
+ Enabled: true
565
+
566
+ Layout/EmptyLinesAroundAccessModifier:
567
+ Description: "Keep blank lines around access modifiers."
568
+ Enabled: true
569
+
570
+ Layout/EmptyLinesAroundBlockBody:
571
+ Description: "Keeps track of empty lines around block bodies."
572
+ Enabled: true
573
+
574
+ Layout/EmptyLinesAroundClassBody:
575
+ Description: "Keeps track of empty lines around class bodies."
576
+ Enabled: true
577
+
578
+ Layout/EmptyLinesAroundModuleBody:
579
+ Description: "Keeps track of empty lines around module bodies."
580
+ Enabled: true
581
+
582
+ Layout/EmptyLinesAroundMethodBody:
583
+ Description: "Keeps track of empty lines around method bodies."
584
+ Enabled: true
585
+
586
+ Style/EmptyLiteral:
587
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
588
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
589
+ Enabled: true
590
+
591
+ Style/EndBlock:
592
+ Description: 'Avoid the use of END blocks.'
593
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
594
+ Enabled: true
595
+
596
+ Layout/EndOfLine:
597
+ Description: 'Use Unix-style line endings.'
598
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
599
+ Enabled: true
600
+
601
+ Style/EvenOdd:
602
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
603
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
604
+ Enabled: true
605
+
606
+ Layout/ExtraSpacing:
607
+ Description: 'Do not use unnecessary spacing.'
608
+ Enabled: true
609
+
610
+ Naming/FileName:
611
+ Description: 'Use snake_case for source file names.'
612
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
613
+ Enabled: true
614
+
615
+ Layout/InitialIndentation:
616
+ Description: >-
617
+ Checks the indentation of the first non-blank non-comment line in a file.
618
+ Enabled: true
619
+
620
+ Layout/FirstParameterIndentation:
621
+ Description: 'Checks the indentation of the first parameter in a method call.'
622
+ Enabled: true
623
+
624
+ Style/FlipFlop:
625
+ Description: 'Checks for flip flops'
626
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
627
+ Enabled: true
628
+
629
+ Style/For:
630
+ Description: 'Checks use of for or each in multiline loops.'
631
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
632
+ Enabled: true
633
+
634
+ Style/FormatString:
635
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
636
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
637
+ EnforcedStyle: sprintf
638
+ Enabled: true
639
+
640
+ Style/GlobalVars:
641
+ Description: 'Do not introduce global variables.'
642
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
643
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
644
+ Enabled: true
645
+
646
+ Style/GuardClause:
647
+ Description: 'Check for conditionals that can be replaced with guard clauses'
648
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
649
+ Enabled: true
650
+
651
+ Style/HashSyntax:
652
+ Description: >-
653
+ Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
654
+ { :a => 1, :b => 2 }.
655
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
656
+ Enabled: true
657
+
658
+ Style/IfUnlessModifier:
659
+ Description: >-
660
+ Favor modifier if/unless usage when you have a
661
+ single-line body.
662
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
663
+ Enabled: true
664
+
665
+ Style/IfWithSemicolon:
666
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
667
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
668
+ Enabled: true
669
+
670
+ Layout/IndentationConsistency:
671
+ Description: 'Keep indentation straight.'
672
+ Enabled: true
673
+
674
+ Layout/IndentationWidth:
675
+ Description: 'Use 2 spaces for indentation.'
676
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
677
+ Enabled: true
678
+
679
+ Layout/IndentArray:
680
+ Description: >-
681
+ Checks the indentation of the first element in an array
682
+ literal.
683
+ EnforcedStyle: consistent
684
+ Enabled: true
685
+
686
+ Layout/IndentHash:
687
+ Description: 'Checks the indentation of the first key in a hash literal.'
688
+ EnforcedStyle: consistent
689
+ Enabled: true
690
+
691
+ Style/InfiniteLoop:
692
+ Description: 'Use Kernel#loop for infinite loops.'
693
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
694
+ Enabled: true
695
+
696
+ Style/Lambda:
697
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
698
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
699
+ Enabled: true
700
+
701
+ Style/LambdaCall:
702
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
703
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
704
+ Enabled: true
705
+
706
+ Layout/LeadingCommentSpace:
707
+ Description: 'Comments should start with a space.'
708
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
709
+ Enabled: true
710
+
711
+ Style/LineEndConcatenation:
712
+ Description: >-
713
+ Use \ instead of + or << to concatenate two string literals at
714
+ line end.
715
+ Enabled: true
716
+
717
+ Style/MethodCallWithoutArgsParentheses:
718
+ Description: 'Do not use parentheses for method calls with no arguments.'
719
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
720
+ Enabled: true
721
+
722
+ Style/MethodDefParentheses:
723
+ Description: >-
724
+ Checks if the method definitions have or don't have
725
+ parentheses.
726
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
727
+ Enabled: true
728
+
729
+ Naming/MethodName:
730
+ Description: 'Use the configured style when naming methods.'
731
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
732
+ Enabled: true
733
+
734
+ Style/ModuleFunction:
735
+ Description: 'Checks for usage of `extend self` in modules.'
736
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
737
+ Enabled: true
738
+
739
+ Style/MultilineBlockChain:
740
+ Description: 'Avoid multi-line chains of blocks.'
741
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
742
+ Enabled: true
743
+
744
+ Layout/MultilineBlockLayout:
745
+ Description: 'Ensures newlines after multiline block do statements.'
746
+ Enabled: true
747
+
748
+ Style/MultilineIfThen:
749
+ Description: 'Do not use then for multi-line if/unless.'
750
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
751
+ Enabled: true
752
+
753
+ Layout/MultilineOperationIndentation:
754
+ Description: >-
755
+ Checks indentation of binary operations that span more than
756
+ one line.
757
+ Enabled: true
758
+
759
+ Style/MultilineTernaryOperator:
760
+ Description: >-
761
+ Avoid multi-line ?: (the ternary operator);
762
+ use if/unless instead.
763
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
764
+ Enabled: true
765
+
766
+ Style/NegatedIf:
767
+ Description: >-
768
+ Favor unless over if for negative conditions
769
+ (or control flow or).
770
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
771
+ Enabled: false
772
+
773
+ Style/NegatedWhile:
774
+ Description: 'Favor until over while for negative conditions.'
775
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
776
+ Enabled: false
777
+
778
+ Style/NestedTernaryOperator:
779
+ Description: 'Use one expression per branch in a ternary operator.'
780
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
781
+ Enabled: true
782
+
783
+ Style/Next:
784
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
785
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
786
+ Enabled: true
787
+
788
+ Style/NilComparison:
789
+ Description: 'Prefer x.nil? to x == nil.'
790
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
791
+ EnforcedStyle: comparison
792
+ Enabled: true
793
+
794
+ Style/NonNilCheck:
795
+ # With `IncludeSemanticChanges` set to `true`, this cop reports offenses for
796
+ # `!x.nil?` and autocorrects that and `x != nil` to solely `x`, which is
797
+ # **usually** OK, but might change behavior.
798
+ #
799
+ # With `IncludeSemanticChanges` set to `false`, this cop does not report
800
+ # offenses for `!x.nil?` and does no changes that might change behavior.
801
+ Description: 'Checks for redundant nil checks.'
802
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
803
+ IncludeSemanticChanges: true
804
+ Enabled: false
805
+
806
+ Style/Not:
807
+ Description: 'Use ! instead of not.'
808
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
809
+ Enabled: false
810
+
811
+ Style/NumericLiterals:
812
+ Description: >-
813
+ Add underscores to large numeric literals to improve their
814
+ readability.
815
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
816
+ Enabled: true
817
+
818
+ Style/OneLineConditional:
819
+ Description: >-
820
+ Favor the ternary operator(?:) over
821
+ if/then/else/end constructs.
822
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
823
+ Enabled: true
824
+
825
+ Naming/BinaryOperatorParameterName:
826
+ Description: 'When defining binary operators, name the argument other.'
827
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
828
+ Enabled: true
829
+
830
+ Style/OptionalArguments:
831
+ Description: >-
832
+ Checks for optional arguments that do not appear at the end
833
+ of the argument list
834
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#optional-arguments'
835
+ Enabled: true
836
+
837
+ Style/ParallelAssignment:
838
+ Description: >-
839
+ Check for simple usages of parallel assignment.
840
+ It will only warn when the number of variables
841
+ matches on both sides of the assignment.
842
+ This also provides performance benefits
843
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parallel-assignment'
844
+ Enabled: true
845
+
846
+ Style/ParenthesesAroundCondition:
847
+ Description: >-
848
+ Don't use parentheses around the condition of an
849
+ if/unless/while.
850
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
851
+ Enabled: true
852
+
853
+ Style/PercentLiteralDelimiters:
854
+ Description: 'Use `%`-literal delimiters consistently'
855
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
856
+ Enabled: true
857
+
858
+ Style/PercentQLiterals:
859
+ Description: 'Checks if uses of %Q/%q match the configured preference.'
860
+ Enabled: true
861
+
862
+ Style/PerlBackrefs:
863
+ Description: 'Avoid Perl-style regex back references.'
864
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
865
+ Enabled: true
866
+
867
+ Naming/PredicateName:
868
+ Description: 'Check the names of predicate methods.'
869
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
870
+ Enabled: true
871
+
872
+ Style/Proc:
873
+ Description: 'Use proc instead of Proc.new.'
874
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
875
+ Enabled: true
876
+
877
+ Style/RaiseArgs:
878
+ Description: 'Checks the arguments passed to raise/fail.'
879
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
880
+ Enabled: true
881
+
882
+ Style/RedundantBegin:
883
+ Description: "Don't use begin blocks when they are not needed."
884
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
885
+ Enabled: true
886
+
887
+ Style/RedundantException:
888
+ Description: "Checks for an obsolete RuntimeException argument in raise/fail."
889
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
890
+ Enabled: true
891
+
892
+ Style/RedundantReturn:
893
+ Description: "Don't use return where it's not required."
894
+ # When `true` allows code like `return x, y`.
895
+ AllowMultipleReturnValues: false
896
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
897
+ Enabled: false
898
+
899
+ Style/RedundantSelf:
900
+ Description: "Don't use self where it's not needed."
901
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
902
+ Enabled: true
903
+
904
+ Style/RegexpLiteral:
905
+ Description: 'Use / or %r around regular expressions.'
906
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
907
+ EnforcedStyle: slashes
908
+ AllowInnerSlashes: false
909
+ Enabled: true
910
+
911
+ Layout/RescueEnsureAlignment:
912
+ Description: 'Align rescues and ensures correctly.'
913
+ Enabled: true
914
+
915
+ Style/RescueModifier:
916
+ Description: 'Avoid using rescue in its modifier form.'
917
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
918
+ Enabled: true
919
+
920
+ Style/SelfAssignment:
921
+ Description: >-
922
+ Checks for places where self-assignment shorthand should have
923
+ been used.
924
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
925
+ Enabled: true
926
+
927
+ Style/Semicolon:
928
+ Description: "Don't use semicolons to terminate expressions."
929
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
930
+ Enabled: true
931
+
932
+ Style/SignalException:
933
+ Description: 'Checks for proper usage of fail and raise.'
934
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
935
+ EnforcedStyle: semantic
936
+ Enabled: true
937
+
938
+ Style/SingleLineBlockParams:
939
+ Description: 'Enforces the names of some block params.'
940
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
941
+ Methods:
942
+ - reduce:
943
+ - acc
944
+ - elem
945
+ - inject:
946
+ - acc
947
+ - elem
948
+ Enabled: true
949
+
950
+ Style/SingleLineMethods:
951
+ Description: 'Avoid single-line methods.'
952
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
953
+ Enabled: true
954
+
955
+ Layout/SpaceBeforeFirstArg:
956
+ Description: >-
957
+ Checks that exactly one space is used between a method name
958
+ and the first argument for method calls without parentheses.
959
+ Enabled: true
960
+
961
+ Layout/SpaceAfterColon:
962
+ Description: 'Use spaces after colons.'
963
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
964
+ Enabled: true
965
+
966
+ Layout/SpaceAfterComma:
967
+ Description: 'Use spaces after commas.'
968
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
969
+ Enabled: true
970
+
971
+ Layout/SpaceAroundKeyword:
972
+ Description: 'Use spaces around keywords.'
973
+ Enabled: true
974
+
975
+ Layout/SpaceAfterMethodName:
976
+ Description: >-
977
+ Do not put a space between a method name and the opening
978
+ parenthesis in a method definition.
979
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
980
+ Enabled: true
981
+
982
+ Layout/SpaceAfterNot:
983
+ Description: Tracks redundant space after the ! operator.
984
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
985
+ Enabled: true
986
+
987
+ Layout/SpaceAfterSemicolon:
988
+ Description: 'Use spaces after semicolons.'
989
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
990
+ Enabled: true
991
+
992
+ Layout/SpaceBeforeBlockBraces:
993
+ Description: >-
994
+ Checks that the left block brace has or doesn't have space
995
+ before it.
996
+ EnforcedStyle: no_space
997
+ Enabled: true
998
+
999
+ Layout/SpaceBeforeComma:
1000
+ Description: 'No spaces before commas.'
1001
+ Enabled: true
1002
+
1003
+ Layout/SpaceBeforeComment:
1004
+ Description: >-
1005
+ Checks for missing space between code and a comment on the
1006
+ same line.
1007
+ Enabled: true
1008
+
1009
+ Layout/SpaceBeforeSemicolon:
1010
+ Description: 'No spaces before semicolons.'
1011
+ Enabled: false
1012
+
1013
+ Layout/SpaceInsideBlockBraces:
1014
+ Description: >-
1015
+ Checks that block braces have or don't have surrounding space.
1016
+ For blocks taking parameters, checks that the left brace has
1017
+ or doesn't have trailing space.
1018
+ SpaceBeforeBlockParameters: false
1019
+ Enabled: true
1020
+
1021
+ Layout/SpaceAroundBlockParameters:
1022
+ Description: 'Checks the spacing inside and after block parameters pipes.'
1023
+ Enabled: true
1024
+
1025
+ Layout/SpaceAroundEqualsInParameterDefault:
1026
+ Description: >-
1027
+ Checks that the equals signs in parameter default assignments
1028
+ have or don't have surrounding space depending on
1029
+ configuration.
1030
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
1031
+ Enabled: true
1032
+
1033
+ Layout/SpaceAroundOperators:
1034
+ Description: 'Use a single space around operators.'
1035
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1036
+ Enabled: true
1037
+
1038
+ Layout/SpaceInsideArrayLiteralBrackets:
1039
+ Description: 'Checks the spacing inside array literal brackets.'
1040
+ Enabled: true
1041
+ EnforcedStyle: no_space
1042
+ SupportedStyles:
1043
+ - space
1044
+ - no_space
1045
+ # 'compact' normally requires a space inside the brackets, with the exception
1046
+ # that successive left brackets or right brackets are collapsed together
1047
+ - compact
1048
+ EnforcedStyleForEmptyBrackets: no_space
1049
+ SupportedStylesForEmptyBrackets:
1050
+ - space
1051
+ - no_space
1052
+
1053
+ Layout/SpaceInsideReferenceBrackets:
1054
+ Description: 'Checks the spacing inside referential brackets.'
1055
+ Enabled: true
1056
+ EnforcedStyle: no_space
1057
+ SupportedStyles:
1058
+ - space
1059
+ - no_space
1060
+ EnforcedStyleForEmptyBrackets: no_space
1061
+ SupportedStylesForEmptyBrackets:
1062
+ - space
1063
+ - no_space
1064
+
1065
+ Layout/SpaceInsideHashLiteralBraces:
1066
+ Description: "Use spaces inside hash literal braces - or don't."
1067
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1068
+ # SupportedStyles:
1069
+ # - space
1070
+ # - no_space
1071
+ # # 'compact' normally requires a space inside hash braces, with the exception
1072
+ # # that successive left braces or right braces are collapsed together
1073
+ # - compact
1074
+ EnforcedStyle: compact
1075
+ Enabled: true
1076
+
1077
+ Layout/SpaceInsideParens:
1078
+ Description: 'No spaces after ( or before ).'
1079
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1080
+ Enabled: true
1081
+
1082
+ Layout/SpaceInsideRangeLiteral:
1083
+ Description: 'No spaces inside range literals.'
1084
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
1085
+ Enabled: true
1086
+
1087
+ Layout/SpaceInsideStringInterpolation:
1088
+ Description: 'Checks for padding/surrounding spaces inside string interpolation.'
1089
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
1090
+ Enabled: true
1091
+
1092
+ Style/SpecialGlobalVars:
1093
+ Description: 'Avoid Perl-style global variables.'
1094
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
1095
+ Enabled: true
1096
+
1097
+ Style/StringLiterals:
1098
+ Description: 'Checks if uses of quotes match the configured preference.'
1099
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
1100
+ Enabled: true
1101
+
1102
+ Style/StringLiteralsInInterpolation:
1103
+ Description: >-
1104
+ Checks if uses of quotes inside expressions in interpolated
1105
+ strings match the configured preference.
1106
+ Enabled: true
1107
+
1108
+ Style/StructInheritance:
1109
+ Description: 'Checks for inheritance from Struct.new.'
1110
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
1111
+ Enabled: true
1112
+
1113
+ Style/SymbolLiteral:
1114
+ Description: 'Use plain symbols instead of string symbols when possible.'
1115
+ Enabled: true
1116
+
1117
+ Style/SymbolProc:
1118
+ Description: 'Use symbols as procs instead of blocks when possible.'
1119
+ Enabled: true
1120
+
1121
+ Layout/Tab:
1122
+ Description: 'No hard tabs.'
1123
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
1124
+ Enabled: true
1125
+
1126
+ Layout/TrailingBlankLines:
1127
+ Description: 'Checks trailing blank lines and final newline.'
1128
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
1129
+ Enabled: true
1130
+
1131
+ Style/TrailingCommaInArguments:
1132
+ # If `comma`, the cop requires a comma after the last argument, but only for
1133
+ # parenthesized method calls where each argument is on its own line.
1134
+ # If `comma_for_multiple_args`, the cop behaves like `comma` except when
1135
+ # there's only one argument, in which case it requires that there's no
1136
+ # trailing comma.
1137
+ # If `consistent_comma`, the cop requires a comma after the last argument,
1138
+ # for all parenthesized method calls with arguments.
1139
+ Description: 'Checks for trailing comma in parameter lists.'
1140
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
1141
+ EnforcedStyleForMultiline: comma
1142
+ Enabled: true
1143
+
1144
+ Style/TrailingCommaInArrayLiteral:
1145
+ Description: 'Checks for trailing comma in array literals.'
1146
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
1147
+ EnforcedStyleForMultiline: comma
1148
+ SupportedStylesForMultiline:
1149
+ - comma
1150
+ - consistent_comma
1151
+ - no_comma
1152
+ Enabled: true
1153
+
1154
+ Style/TrailingCommaInHashLiteral:
1155
+ Description: 'Checks for trailing comma in hash literals.'
1156
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
1157
+ EnforcedStyleForMultiline: comma
1158
+ SupportedStylesForMultiline:
1159
+ - comma
1160
+ - consistent_comma
1161
+ - no_comma
1162
+ Enabled: true
1163
+
1164
+ Layout/TrailingWhitespace:
1165
+ Description: 'Avoid trailing whitespace.'
1166
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
1167
+ Enabled: true
1168
+
1169
+ Style/TrivialAccessors:
1170
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
1171
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
1172
+ Enabled: true
1173
+
1174
+ Style/UnlessElse:
1175
+ Description: >-
1176
+ Do not use unless with else. Rewrite these with the positive
1177
+ case first.
1178
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
1179
+ Enabled: true
1180
+
1181
+ Style/UnneededCapitalW:
1182
+ Description: 'Checks for %W when interpolation is not needed.'
1183
+ Enabled: true
1184
+
1185
+ Style/UnneededPercentQ:
1186
+ Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
1187
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
1188
+ Enabled: true
1189
+
1190
+ Style/TrailingUnderscoreVariable:
1191
+ Description: >-
1192
+ Checks for the usage of unneeded trailing underscores at the
1193
+ end of parallel variable assignment.
1194
+ Enabled: true
1195
+
1196
+ Style/VariableInterpolation:
1197
+ Description: >-
1198
+ Don't interpolate global, instance and class variables
1199
+ directly in strings.
1200
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
1201
+ Enabled: true
1202
+
1203
+ Naming/VariableName:
1204
+ Description: 'Use the configured style when naming variables.'
1205
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
1206
+ Enabled: true
1207
+
1208
+ Style/WhenThen:
1209
+ Description: 'Use when x then ... for one-line cases.'
1210
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
1211
+ Enabled: false
1212
+
1213
+ Style/WhileUntilDo:
1214
+ Description: 'Checks for redundant do after while or until.'
1215
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
1216
+ Enabled: true
1217
+
1218
+ Style/WhileUntilModifier:
1219
+ Description: >-
1220
+ Favor modifier while/until usage when you have a
1221
+ single-line body.
1222
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
1223
+ Enabled: true
1224
+
1225
+ Style/WordArray:
1226
+ Description: 'Use %w or %W for arrays of words.'
1227
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
1228
+ Enabled: true