knife-bastion 1.0.0 → 1.1.0

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