coach_client 0.1.1 → 0.2.0

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