shipcloud 0.7.0 → 0.8.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: e1af501886ebceb1740604bdc3216bac732bfd3a
4
- data.tar.gz: b0eb7b46245cab6d030a7dc4ec268ad2198cc117
3
+ metadata.gz: 5f9b114ff14f401de0fce6dac3b71435450c37de
4
+ data.tar.gz: db254774b0fdc123a3a71489c4c7fb7574709cf0
5
5
  SHA512:
6
- metadata.gz: f84e3710264fe699fde827fa9393bb54fa1d054385f8c966da2238898ec9ccfe9b424399e35630c98c89d9e7375fef97d1745d7178087a3030c3267d6e1051f7
7
- data.tar.gz: 5efa177ecb0085b8dee951c02032b4b874f26c3a85df5ba07920d399c0bf048b2ab2434b75ec3429802a65469195ad03c7f533d4bf39d9c8b1445d45b64367f4
6
+ metadata.gz: cf12ac59a1438e2592f6ad351f7e32a5f7f9b3c160ce291612e6d4f21f23c5483a56c2ba53e208d723befab21f4ac15b3e3e36b3409124976de36dada2690a1d
7
+ data.tar.gz: b0fa46ffd4755bf9cb719511a40957c117991d99f8ddbb0867a307b1dcfa02e82c098c8c793ca33fdb1ccc7dfb22352a7c3b5956dcf2e3536fd94f5bae012051
data/.hound.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ruby:
2
- config_file: .ruby-style.yml
2
+ config_file: .rubocop.yml
3
3
  scss:
4
4
  enabled: false
5
5
  coffeescript:
@@ -1,2 +1,689 @@
1
- inherit_from:
2
- - .ruby-style.yml
1
+ AllCops:
2
+ TargetRubyVersion: 2.3
3
+ Exclude:
4
+ - vendor/**/*
5
+ - db/schema.rb
6
+
7
+ Style/AccessorMethodName:
8
+ Description: Check the naming of accessor methods for get_/set_.
9
+ Enabled: false
10
+
11
+ Style/Alias:
12
+ Description: 'Use alias_method instead of alias.'
13
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
14
+ Enabled: false
15
+
16
+ Style/ArrayJoin:
17
+ Description: 'Use Array#join instead of Array#*.'
18
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
19
+ Enabled: false
20
+
21
+ Style/AsciiComments:
22
+ Description: 'Use only ascii symbols in comments.'
23
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
24
+ Enabled: false
25
+
26
+ Style/AsciiIdentifiers:
27
+ Description: 'Use only ascii symbols in identifiers.'
28
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
29
+ Enabled: false
30
+
31
+ Style/Attr:
32
+ Description: 'Checks for uses of Module#attr.'
33
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
34
+ Enabled: false
35
+
36
+ Style/CaseEquality:
37
+ Description: 'Avoid explicit use of the case equality operator(===).'
38
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
39
+ Enabled: false
40
+
41
+ Style/CharacterLiteral:
42
+ Description: 'Checks for uses of character literals.'
43
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
44
+ Enabled: false
45
+
46
+ Style/ClassAndModuleChildren:
47
+ Description: 'Checks style of children classes and modules.'
48
+ Enabled: true
49
+ EnforcedStyle: nested
50
+
51
+ Style/ClassVars:
52
+ Description: 'Avoid the use of class variables.'
53
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
54
+ Enabled: false
55
+
56
+ Style/CollectionMethods:
57
+ Enabled: true
58
+ PreferredMethods:
59
+ find: detect
60
+ reduce: inject
61
+ collect: map
62
+ collect!: map!
63
+ find_all: select
64
+
65
+ Style/ColonMethodCall:
66
+ Description: 'Do not use :: for method call.'
67
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
68
+ Enabled: false
69
+
70
+ Style/CommentAnnotation:
71
+ Description: >-
72
+ Checks formatting of special comments
73
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
74
+ Enabled: false
75
+
76
+ Style/PreferredHashMethods:
77
+ Description: 'Checks use of `has_key?` and `has_value?` Hash methods.'
78
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
79
+ Enabled: false
80
+
81
+ Style/Documentation:
82
+ Description: 'Document classes and non-namespace modules.'
83
+ Enabled: false
84
+
85
+ Style/DoubleNegation:
86
+ Description: 'Checks for uses of double negation (!!).'
87
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
88
+ Enabled: false
89
+
90
+ Style/EachWithObject:
91
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
92
+ Enabled: false
93
+
94
+ Style/EmptyLiteral:
95
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
96
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
97
+ Enabled: false
98
+
99
+ # Checks whether the source file has a utf-8 encoding comment or not
100
+ # AutoCorrectEncodingComment must match the regex
101
+ # /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
102
+ Style/Encoding:
103
+ Enabled: false
104
+
105
+ Style/EvenOdd:
106
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
107
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
108
+ Enabled: false
109
+
110
+ Style/FileName:
111
+ Description: 'Use snake_case for source file names.'
112
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
113
+ Enabled: false
114
+
115
+ Style/FlipFlop:
116
+ Description: 'Checks for flip flops'
117
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
118
+ Enabled: false
119
+
120
+ Style/FormatString:
121
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
122
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
123
+ Enabled: false
124
+
125
+ Style/GlobalVars:
126
+ Description: 'Do not introduce global variables.'
127
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
128
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
129
+ Enabled: false
130
+
131
+ Style/GuardClause:
132
+ Description: 'Check for conditionals that can be replaced with guard clauses'
133
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
134
+ Enabled: false
135
+
136
+ Style/IfUnlessModifier:
137
+ Description: >-
138
+ Favor modifier if/unless usage when you have a
139
+ single-line body.
140
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
141
+ Enabled: false
142
+ MaxLineLength: 80
143
+
144
+ Style/IfWithSemicolon:
145
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
146
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
147
+ Enabled: false
148
+
149
+ Style/InlineComment:
150
+ Description: 'Avoid inline comments.'
151
+ Enabled: false
152
+
153
+ Style/Lambda:
154
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
155
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
156
+ Enabled: false
157
+
158
+ Style/LambdaCall:
159
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
160
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
161
+ Enabled: false
162
+
163
+ Style/LineEndConcatenation:
164
+ Description: >-
165
+ Use \ instead of + or << to concatenate two string literals at
166
+ line end.
167
+ Enabled: false
168
+
169
+ Style/ModuleFunction:
170
+ Description: 'Checks for usage of `extend self` in modules.'
171
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
172
+ Enabled: false
173
+
174
+ Style/MultilineBlockChain:
175
+ Description: 'Avoid multi-line chains of blocks.'
176
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
177
+ Enabled: false
178
+
179
+ Style/NegatedIf:
180
+ Description: >-
181
+ Favor unless over if for negative conditions
182
+ (or control flow or).
183
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
184
+ Enabled: false
185
+
186
+ Style/NegatedWhile:
187
+ Description: 'Favor until over while for negative conditions.'
188
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
189
+ Enabled: false
190
+
191
+ Style/Next:
192
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
193
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
194
+ Enabled: false
195
+
196
+ Style/NilComparison:
197
+ Description: 'Prefer x.nil? to x == nil.'
198
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
199
+ Enabled: false
200
+
201
+ Style/Not:
202
+ Description: 'Use ! instead of not.'
203
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
204
+ Enabled: false
205
+
206
+ Style/NumericLiterals:
207
+ Description: >-
208
+ Add underscores to large numeric literals to improve their
209
+ readability.
210
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
211
+ Enabled: false
212
+
213
+ Style/OneLineConditional:
214
+ Description: >-
215
+ Favor the ternary operator(?:) over
216
+ if/then/else/end constructs.
217
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
218
+ Enabled: false
219
+
220
+ Style/OpMethod:
221
+ Description: 'When defining binary operators, name the argument other.'
222
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
223
+ Enabled: false
224
+
225
+ Style/PercentLiteralDelimiters:
226
+ Description: 'Use `%`-literal delimiters consistently'
227
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
228
+ Enabled: false
229
+
230
+ Style/PerlBackrefs:
231
+ Description: 'Avoid Perl-style regex back references.'
232
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
233
+ Enabled: false
234
+
235
+ Style/PredicateName:
236
+ Description: 'Check the names of predicate methods.'
237
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
238
+ NamePrefix:
239
+ - is_
240
+ - has_
241
+ - have_
242
+ NamePrefixBlacklist:
243
+ - is_
244
+ Exclude:
245
+ - spec/**/*
246
+
247
+ Style/Proc:
248
+ Description: 'Use proc instead of Proc.new.'
249
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
250
+ Enabled: false
251
+
252
+ Style/RaiseArgs:
253
+ Description: 'Checks the arguments passed to raise/fail.'
254
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
255
+ Enabled: false
256
+
257
+ Style/RegexpLiteral:
258
+ Description: 'Use / or %r around regular expressions.'
259
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
260
+ Enabled: false
261
+
262
+ Style/SelfAssignment:
263
+ Description: >-
264
+ Checks for places where self-assignment shorthand should have
265
+ been used.
266
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
267
+ Enabled: false
268
+
269
+ Style/SingleLineBlockParams:
270
+ Description: 'Enforces the names of some block params.'
271
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
272
+ Enabled: false
273
+
274
+ Style/SingleLineMethods:
275
+ Description: 'Avoid single-line methods.'
276
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
277
+ Enabled: false
278
+
279
+ Style/SignalException:
280
+ Description: 'Checks for proper usage of fail and raise.'
281
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
282
+ Enabled: false
283
+
284
+ Style/SpecialGlobalVars:
285
+ Description: 'Avoid Perl-style global variables.'
286
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
287
+ Enabled: false
288
+
289
+ Style/StringLiterals:
290
+ Description: 'Checks if uses of quotes match the configured preference.'
291
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
292
+ EnforcedStyle: double_quotes
293
+ Enabled: true
294
+
295
+ Style/StringLiteralsInInterpolation:
296
+ Description: >-
297
+ Checks if uses of quotes inside expressions in interpolated strings
298
+ match the configured preference.
299
+ Enabled: true
300
+ EnforcedStyle: single_quotes
301
+ SupportedStyles:
302
+ - single_quotes
303
+ - double_quotes
304
+
305
+ Style/SymbolArray:
306
+ Enabled: false
307
+
308
+ Style/TrailingCommaInArguments:
309
+ Description: 'Checks for trailing comma in argument lists.'
310
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
311
+ EnforcedStyleForMultiline: comma
312
+ SupportedStylesForMultiline:
313
+ - comma
314
+ - consistent_comma
315
+ - no_comma
316
+ Enabled: true
317
+
318
+ Style/TrailingCommaInLiteral:
319
+ Description: 'Checks for trailing comma in array and hash literals.'
320
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
321
+ EnforcedStyleForMultiline: comma
322
+ SupportedStylesForMultiline:
323
+ - comma
324
+ - consistent_comma
325
+ - no_comma
326
+ Enabled: true
327
+
328
+ Style/TrivialAccessors:
329
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
330
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
331
+ Enabled: false
332
+
333
+ Style/VariableInterpolation:
334
+ Description: >-
335
+ Don\'t interpolate global, instance and class variables
336
+ directly in strings.
337
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
338
+ Enabled: false
339
+
340
+ Style/WhenThen:
341
+ Description: 'Use when x then ... for one-line cases.'
342
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
343
+ Enabled: false
344
+
345
+ Style/WhileUntilModifier:
346
+ Description: >-
347
+ Favor modifier while/until usage when you have a
348
+ single-line body.
349
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
350
+ Enabled: false
351
+
352
+ Style/WordArray:
353
+ Description: 'Use %w or %W for arrays of words.'
354
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
355
+ Enabled: false
356
+
357
+ Style/OptionHash:
358
+ Description: Don\'t use option hashes when you can use keyword arguments.
359
+ SuspiciousParamNames:
360
+ - options
361
+ - opts
362
+ - args
363
+ - params
364
+ - parameters
365
+ Enabled: true
366
+
367
+ # Layout
368
+
369
+ Layout/DotPosition:
370
+ Description: 'Checks the position of the dot in multi-line method calls.'
371
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
372
+ EnforcedStyle: trailing
373
+
374
+ Layout/EmptyLineAfterMagicComment:
375
+ Description: 'Add an empty line after magic comments to separate them from code.'
376
+ StyleGuide: '#separate-magic-comments-from-code'
377
+ Enabled: false
378
+
379
+ Layout/ExtraSpacing:
380
+ Description: 'Do not use unnecessary spacing.'
381
+ Enabled: true
382
+
383
+ Layout/FirstArrayElementLineBreak:
384
+ Description: >-
385
+ Checks for a line break before the first element in a
386
+ multi-line array.
387
+ Enabled: true
388
+
389
+ Layout/FirstHashElementLineBreak:
390
+ Description: >-
391
+ Checks for a line break before the first element in a
392
+ multi-line hash.
393
+ Enabled: true
394
+
395
+ Layout/FirstMethodArgumentLineBreak:
396
+ Description: >-
397
+ Checks for a line break before the first argument in a
398
+ multi-line method call.
399
+ Enabled: true
400
+
401
+ Layout/InitialIndentation:
402
+ Description: >-
403
+ Checks the indentation of the first non-blank non-comment line in a file.
404
+ Enabled: false
405
+
406
+ Layout/MultilineMethodCallIndentation:
407
+ Description: >-
408
+ Checks indentation of method calls with the dot operator
409
+ that span more than one line.
410
+ Enabled: true
411
+ EnforcedStyle: indented
412
+
413
+ Layout/MultilineOperationIndentation:
414
+ Description: >-
415
+ Checks indentation of binary operations that span more than
416
+ one line.
417
+ Enabled: true
418
+ EnforcedStyle: indented
419
+
420
+ # Lint
421
+
422
+ Lint/AmbiguousOperator:
423
+ Description: >-
424
+ Checks for ambiguous operators in the first argument of a
425
+ method invocation without parentheses.
426
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
427
+ Enabled: false
428
+
429
+ Lint/AmbiguousRegexpLiteral:
430
+ Description: >-
431
+ Checks for ambiguous regexp literals in the first argument of
432
+ a method invocation without parenthesis.
433
+ Enabled: false
434
+
435
+ Lint/AssignmentInCondition:
436
+ Description: "Don't use assignment in conditions."
437
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
438
+ Enabled: false
439
+
440
+ Lint/CircularArgumentReference:
441
+ Description: "Don't refer to the keyword argument in the default value."
442
+ Enabled: false
443
+
444
+ Lint/ConditionPosition:
445
+ Description: >-
446
+ Checks for condition placed in a confusing position relative to
447
+ the keyword.
448
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
449
+ Enabled: false
450
+
451
+ Lint/DeprecatedClassMethods:
452
+ Description: 'Check for deprecated class method calls.'
453
+ Enabled: false
454
+
455
+ Lint/DuplicatedKey:
456
+ Description: 'Check for duplicate keys in hash literals.'
457
+ Enabled: false
458
+
459
+ Lint/EachWithObjectArgument:
460
+ Description: 'Check for immutable argument given to each_with_object.'
461
+ Enabled: false
462
+
463
+ Lint/ElseLayout:
464
+ Description: 'Check for odd code arrangement in an else block.'
465
+ Enabled: false
466
+
467
+ Lint/FormatParameterMismatch:
468
+ Description: 'The number of parameters to format/sprint must match the fields.'
469
+ Enabled: false
470
+
471
+ Lint/HandleExceptions:
472
+ Description: "Don't suppress exception."
473
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
474
+ Enabled: false
475
+
476
+ Lint/InvalidCharacterLiteral:
477
+ Description: >-
478
+ Checks for invalid character literals with a non-escaped
479
+ whitespace character.
480
+ Enabled: false
481
+
482
+ Lint/LiteralInCondition:
483
+ Description: 'Checks of literals used in conditions.'
484
+ Enabled: false
485
+
486
+ Lint/LiteralInInterpolation:
487
+ Description: 'Checks for literals used in interpolation.'
488
+ Enabled: false
489
+
490
+ Lint/Loop:
491
+ Description: >-
492
+ Use Kernel#loop with break rather than begin/end/until or
493
+ begin/end/while for post-loop tests.
494
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
495
+ Enabled: false
496
+
497
+ Lint/NestedMethodDefinition:
498
+ Description: 'Do not use nested method definitions.'
499
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
500
+ Enabled: false
501
+
502
+ Lint/NonLocalExitFromIterator:
503
+ Description: 'Do not use return in iterator to cause non-local exit.'
504
+ Enabled: false
505
+
506
+ Lint/ParenthesesAsGroupedExpression:
507
+ Description: >-
508
+ Checks for method calls with a space before the opening
509
+ parenthesis.
510
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
511
+ Enabled: false
512
+
513
+ Lint/RequireParentheses:
514
+ Description: >-
515
+ Use parentheses in the method call to avoid confusion
516
+ about precedence.
517
+ Enabled: false
518
+
519
+ Lint/UnderscorePrefixedVariableName:
520
+ Description: 'Do not use prefix `_` for a variable that is used.'
521
+ Enabled: false
522
+
523
+ Lint/UnneededDisable:
524
+ Description: >-
525
+ Checks for rubocop:disable comments that can be removed.
526
+ Note: this cop is not disabled when disabling all cops.
527
+ It must be explicitly disabled.
528
+ Enabled: false
529
+
530
+ Lint/Void:
531
+ Description: 'Possible use of operator/literal/variable in void context.'
532
+ Enabled: false
533
+
534
+ # Metrics
535
+
536
+ Metrics/AbcSize:
537
+ Description: >-
538
+ A calculated magnitude based on number of assignments,
539
+ branches, and conditions.
540
+ Enabled: false
541
+
542
+ Metrics/BlockLength:
543
+ Description: 'Avoid long blocks with many lines.'
544
+ Enabled: true
545
+ Exclude:
546
+ - "spec/**/*"
547
+ - "config/routes.rb"
548
+
549
+ Metrics/BlockNesting:
550
+ Description: 'Avoid excessive block nesting'
551
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
552
+ Enabled: false
553
+
554
+ Metrics/ClassLength:
555
+ Description: 'Avoid classes longer than 100 lines of code.'
556
+ Enabled: false
557
+
558
+ Metrics/CyclomaticComplexity:
559
+ Description: >-
560
+ A complexity metric that is strongly correlated to the number
561
+ of test cases needed to validate a method.
562
+ Enabled: false
563
+
564
+ Metrics/LineLength:
565
+ Description: 'Limit lines to 100 characters.'
566
+ Max: 100
567
+
568
+ Metrics/MethodLength:
569
+ Description: 'Avoid methods longer than 10 lines of code.'
570
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
571
+ Enabled: false
572
+
573
+ Metrics/ModuleLength:
574
+ Description: 'Avoid modules longer than 100 lines of code.'
575
+ Enabled: false
576
+
577
+ Metrics/ParameterLists:
578
+ Description: 'Avoid parameter lists longer than three or four parameters.'
579
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
580
+ Enabled: false
581
+
582
+ # Performance
583
+
584
+ Performance/CaseWhenSplat:
585
+ Description: >-
586
+ Place `when` conditions that use splat at the end
587
+ of the list of `when` branches.
588
+ Enabled: false
589
+
590
+ Performance/Count:
591
+ Description: >-
592
+ Use `count` instead of `select...size`, `reject...size`,
593
+ `select...count`, `reject...count`, `select...length`,
594
+ and `reject...length`.
595
+ Enabled: false
596
+
597
+ Performance/Detect:
598
+ Description: >-
599
+ Use `detect` instead of `select.first`, `find_all.first`,
600
+ `select.last`, and `find_all.last`.
601
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
602
+ Enabled: false
603
+
604
+ Performance/FlatMap:
605
+ Description: >-
606
+ Use `Enumerable#flat_map`
607
+ instead of `Enumerable#map...Array#flatten(1)`
608
+ or `Enumberable#collect..Array#flatten(1)`
609
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
610
+ Enabled: false
611
+
612
+ Performance/ReverseEach:
613
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
614
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
615
+ Enabled: false
616
+
617
+ Performance/Sample:
618
+ Description: >-
619
+ Use `sample` instead of `shuffle.first`,
620
+ `shuffle.last`, and `shuffle[Fixnum]`.
621
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
622
+ Enabled: false
623
+
624
+ Performance/Size:
625
+ Description: >-
626
+ Use `size` instead of `count` for counting
627
+ the number of elements in `Array` and `Hash`.
628
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
629
+ Enabled: false
630
+
631
+ Performance/StringReplacement:
632
+ Description: >-
633
+ Use `tr` instead of `gsub` when you are replacing the same
634
+ number of characters. Use `delete` instead of `gsub` when
635
+ you are deleting characters.
636
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
637
+ Enabled: false
638
+
639
+ # Rails
640
+
641
+ Rails/ActionFilter:
642
+ Description: 'Enforces consistent use of action filter methods.'
643
+ Enabled: false
644
+
645
+ Rails/Date:
646
+ Description: >-
647
+ Checks the correct usage of date aware methods,
648
+ such as Date.today, Date.current etc.
649
+ Enabled: false
650
+
651
+ Rails/Delegate:
652
+ Description: 'Prefer delegate method for delegations.'
653
+ Enabled: false
654
+
655
+ Rails/FindBy:
656
+ Description: 'Prefer find_by over where.first.'
657
+ Enabled: false
658
+
659
+ Rails/FindEach:
660
+ Description: 'Prefer all.find_each over all.find.'
661
+ Enabled: false
662
+
663
+ Rails/HasAndBelongsToMany:
664
+ Description: 'Prefer has_many :through to has_and_belongs_to_many.'
665
+ Enabled: false
666
+
667
+ Rails/Output:
668
+ Description: 'Checks for calls to puts, print, etc.'
669
+ Enabled: false
670
+
671
+ Rails/ReadWriteAttribute:
672
+ Description: >-
673
+ Checks for read_attribute(:attr) and
674
+ write_attribute(:attr, val).
675
+ Enabled: false
676
+
677
+ Rails/ScopeArgs:
678
+ Description: 'Checks the arguments of ActiveRecord scopes.'
679
+ Enabled: false
680
+
681
+ Rails/TimeZone:
682
+ Description: 'Checks the correct usage of time zone aware methods.'
683
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
684
+ Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
685
+ Enabled: false
686
+
687
+ Rails/Validation:
688
+ Description: 'Use validates :attribute, hash of validations.'
689
+ Enabled: false