split 3.3.2 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,679 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-10-21 18:09:14 -0300 using RuboCop version 0.75.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 4
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
12
+ # Include: **/*.gemspec
13
+ Gemspec/OrderedDependencies:
14
+ Exclude:
15
+ - 'split.gemspec'
16
+
17
+ # Offense count: 1
18
+ # Configuration parameters: Include.
19
+ # Include: **/*.gemspec,
20
+ Gemspec/RequiredRubyVersion:
21
+ Exclude:
22
+ - 'split.gemspec'
23
+
24
+ # Offense count: 2
25
+ # Cop supports --auto-correct.
26
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
27
+ # SupportedStyles: with_first_argument, with_fixed_indentation
28
+ Layout/AlignArguments:
29
+ Exclude:
30
+ - 'lib/split.rb'
31
+ - 'lib/split/experiment_catalog.rb'
32
+
33
+ # Offense count: 3
34
+ # Cop supports --auto-correct.
35
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
36
+ # SupportedHashRocketStyles: key, separator, table
37
+ # SupportedColonStyles: key, separator, table
38
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
39
+ Layout/AlignHash:
40
+ Exclude:
41
+ - 'lib/split/helper.rb'
42
+
43
+ # Offense count: 1
44
+ # Cop supports --auto-correct.
45
+ Layout/CommentIndentation:
46
+ Exclude:
47
+ - 'lib/split/experiment.rb'
48
+
49
+ # Offense count: 5
50
+ # Cop supports --auto-correct.
51
+ Layout/ElseAlignment:
52
+ Exclude:
53
+ - 'lib/split.rb'
54
+ - 'lib/split/helper.rb'
55
+ - 'lib/split/trial.rb'
56
+
57
+ # Offense count: 20
58
+ # Cop supports --auto-correct.
59
+ Layout/EmptyLineAfterGuardClause:
60
+ Exclude:
61
+ - 'lib/split.rb'
62
+ - 'lib/split/algorithms/weighted_sample.rb'
63
+ - 'lib/split/alternative.rb'
64
+ - 'lib/split/combined_experiments_helper.rb'
65
+ - 'lib/split/configuration.rb'
66
+ - 'lib/split/experiment.rb'
67
+ - 'lib/split/experiment_catalog.rb'
68
+ - 'lib/split/goals_collection.rb'
69
+ - 'lib/split/helper.rb'
70
+ - 'lib/split/user.rb'
71
+
72
+ # Offense count: 25
73
+ # Cop supports --auto-correct.
74
+ Layout/EmptyLineAfterMagicComment:
75
+ Enabled: false
76
+
77
+ # Offense count: 1
78
+ # Cop supports --auto-correct.
79
+ # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
80
+ Layout/EmptyLineBetweenDefs:
81
+ Exclude:
82
+ - 'lib/split/helper.rb'
83
+
84
+ # Offense count: 1
85
+ # Cop supports --auto-correct.
86
+ Layout/EmptyLines:
87
+ Exclude:
88
+ - 'lib/split/helper.rb'
89
+
90
+ # Offense count: 8
91
+ # Cop supports --auto-correct.
92
+ # Configuration parameters: EnforcedStyle.
93
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
94
+ Layout/EmptyLinesAroundClassBody:
95
+ Exclude:
96
+ - 'lib/split/experiment_catalog.rb'
97
+ - 'lib/split/goals_collection.rb'
98
+ - 'lib/split/metric.rb'
99
+ - 'lib/split/persistence/cookie_adapter.rb'
100
+ - 'lib/split/persistence/redis_adapter.rb'
101
+ - 'lib/split/persistence/session_adapter.rb'
102
+ - 'lib/split/zscore.rb'
103
+
104
+ # Offense count: 2
105
+ # Cop supports --auto-correct.
106
+ Layout/EmptyLinesAroundMethodBody:
107
+ Exclude:
108
+ - 'lib/split/dashboard/helpers.rb'
109
+ - 'lib/split/zscore.rb'
110
+
111
+ # Offense count: 1
112
+ # Cop supports --auto-correct.
113
+ # Configuration parameters: EnforcedStyle.
114
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
115
+ Layout/EmptyLinesAroundModuleBody:
116
+ Exclude:
117
+ - 'lib/split/encapsulated_helper.rb'
118
+
119
+ # Offense count: 3
120
+ # Cop supports --auto-correct.
121
+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
122
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
123
+ Layout/EndAlignment:
124
+ Exclude:
125
+ - 'lib/split.rb'
126
+ - 'lib/split/helper.rb'
127
+ - 'lib/split/trial.rb'
128
+
129
+ # Offense count: 4
130
+ # Cop supports --auto-correct.
131
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
132
+ Layout/ExtraSpacing:
133
+ Exclude:
134
+ - 'lib/split/algorithms/whiplash.rb'
135
+ - 'lib/split/dashboard.rb'
136
+ - 'lib/split/metric.rb'
137
+ - 'lib/split/trial.rb'
138
+
139
+ # Offense count: 2
140
+ # Cop supports --auto-correct.
141
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
142
+ # SupportedStyles: special_inside_parentheses, consistent, align_braces
143
+ Layout/IndentFirstHashElement:
144
+ Exclude:
145
+ - 'split.gemspec'
146
+
147
+ # Offense count: 3
148
+ # Cop supports --auto-correct.
149
+ # Configuration parameters: Width, IgnoredPatterns.
150
+ Layout/IndentationWidth:
151
+ Exclude:
152
+ - 'lib/split.rb'
153
+ - 'lib/split/helper.rb'
154
+ - 'lib/split/trial.rb'
155
+
156
+ # Offense count: 10
157
+ # Cop supports --auto-correct.
158
+ Layout/SpaceAfterComma:
159
+ Exclude:
160
+ - 'lib/split/algorithms/weighted_sample.rb'
161
+ - 'lib/split/configuration.rb'
162
+ - 'lib/split/encapsulated_helper.rb'
163
+ - 'lib/split/experiment.rb'
164
+ - 'lib/split/metric.rb'
165
+ - 'lib/split/user.rb'
166
+
167
+ # Offense count: 5
168
+ # Cop supports --auto-correct.
169
+ # Configuration parameters: EnforcedStyle.
170
+ # SupportedStyles: space, no_space
171
+ Layout/SpaceAroundEqualsInParameterDefault:
172
+ Exclude:
173
+ - 'lib/split/goals_collection.rb'
174
+ - 'lib/split/persistence/dual_adapter.rb'
175
+ - 'lib/split/persistence/redis_adapter.rb'
176
+ - 'lib/split/trial.rb'
177
+ - 'lib/split/user.rb'
178
+
179
+ # Offense count: 24
180
+ # Cop supports --auto-correct.
181
+ # Configuration parameters: AllowForAlignment.
182
+ Layout/SpaceAroundOperators:
183
+ Exclude:
184
+ - 'lib/split/algorithms/whiplash.rb'
185
+ - 'lib/split/alternative.rb'
186
+ - 'lib/split/metric.rb'
187
+ - 'lib/split/trial.rb'
188
+ - 'lib/split/zscore.rb'
189
+
190
+ # Offense count: 14
191
+ # Cop supports --auto-correct.
192
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
193
+ # SupportedStyles: space, no_space
194
+ # SupportedStylesForEmptyBraces: space, no_space
195
+ Layout/SpaceBeforeBlockBraces:
196
+ Exclude:
197
+ - 'lib/split/configuration.rb'
198
+ - 'lib/split/experiment.rb'
199
+ - 'lib/split/experiment_catalog.rb'
200
+ - 'lib/split/helper.rb'
201
+ - 'lib/split/trial.rb'
202
+
203
+ # Offense count: 2
204
+ # Cop supports --auto-correct.
205
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
206
+ # SupportedStyles: space, no_space, compact
207
+ # SupportedStylesForEmptyBrackets: space, no_space
208
+ Layout/SpaceInsideArrayLiteralBrackets:
209
+ Exclude:
210
+ - 'lib/split/dashboard/helpers.rb'
211
+
212
+ # Offense count: 31
213
+ # Cop supports --auto-correct.
214
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
215
+ # SupportedStyles: space, no_space
216
+ # SupportedStylesForEmptyBraces: space, no_space
217
+ Layout/SpaceInsideBlockBraces:
218
+ Exclude:
219
+ - 'lib/split/configuration.rb'
220
+ - 'lib/split/experiment.rb'
221
+ - 'lib/split/experiment_catalog.rb'
222
+ - 'lib/split/helper.rb'
223
+ - 'lib/split/trial.rb'
224
+ - 'lib/split/user.rb'
225
+
226
+ # Offense count: 10
227
+ # Cop supports --auto-correct.
228
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
229
+ # SupportedStyles: space, no_space, compact
230
+ # SupportedStylesForEmptyBraces: space, no_space
231
+ Layout/SpaceInsideHashLiteralBraces:
232
+ Exclude:
233
+ - 'lib/split/experiment.rb'
234
+ - 'lib/split/helper.rb'
235
+ - 'lib/split/persistence/redis_adapter.rb'
236
+
237
+ # Offense count: 1
238
+ # Cop supports --auto-correct.
239
+ # Configuration parameters: EnforcedStyle.
240
+ # SupportedStyles: final_newline, final_blank_line
241
+ Layout/TrailingBlankLines:
242
+ Exclude:
243
+ - 'Rakefile'
244
+
245
+ # Offense count: 8
246
+ # Configuration parameters: AllowSafeAssignment.
247
+ Lint/AssignmentInCondition:
248
+ Exclude:
249
+ - 'lib/split/combined_experiments_helper.rb'
250
+ - 'lib/split/configuration.rb'
251
+ - 'lib/split/persistence/cookie_adapter.rb'
252
+ - 'lib/split/persistence/dual_adapter.rb'
253
+ - 'lib/split/persistence/redis_adapter.rb'
254
+
255
+ # Offense count: 4
256
+ # Cop supports --auto-correct.
257
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
258
+ Lint/UnusedBlockArgument:
259
+ Exclude:
260
+ - 'lib/split/algorithms/block_randomization.rb'
261
+ - 'lib/split/configuration.rb'
262
+ - 'lib/split/engine.rb'
263
+ - 'lib/split/metric.rb'
264
+
265
+ # Offense count: 2
266
+ # Cop supports --auto-correct.
267
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
268
+ Lint/UnusedMethodArgument:
269
+ Exclude:
270
+ - 'lib/split/dashboard/helpers.rb'
271
+ - 'lib/split/persistence/cookie_adapter.rb'
272
+
273
+ # Offense count: 1
274
+ Lint/UselessAssignment:
275
+ Exclude:
276
+ - 'lib/split/goals_collection.rb'
277
+
278
+ # Offense count: 19
279
+ Metrics/AbcSize:
280
+ Max: 47
281
+
282
+ # Offense count: 3
283
+ # Configuration parameters: CountComments.
284
+ Metrics/ClassLength:
285
+ Max: 377
286
+
287
+ # Offense count: 6
288
+ Metrics/CyclomaticComplexity:
289
+ Max: 14
290
+
291
+ # Offense count: 23
292
+ # Configuration parameters: CountComments, ExcludedMethods.
293
+ Metrics/MethodLength:
294
+ Max: 66
295
+
296
+ # Offense count: 1
297
+ # Configuration parameters: CountComments.
298
+ Metrics/ModuleLength:
299
+ Max: 134
300
+
301
+ # Offense count: 8
302
+ Metrics/PerceivedComplexity:
303
+ Max: 16
304
+
305
+ # Offense count: 4
306
+ Naming/AccessorMethodName:
307
+ Exclude:
308
+ - 'lib/split/alternative.rb'
309
+ - 'lib/split/experiment.rb'
310
+ - 'lib/split/persistence/cookie_adapter.rb'
311
+
312
+ # Offense count: 1
313
+ Naming/BinaryOperatorParameterName:
314
+ Exclude:
315
+ - 'lib/split/experiment.rb'
316
+
317
+ # Offense count: 4
318
+ # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
319
+ # NamePrefix: is_, has_, have_
320
+ # NamePrefixBlacklist: is_, has_, have_
321
+ # NameWhitelist: is_a?
322
+ # MethodDefinitionMacros: define_method, define_singleton_method
323
+ Naming/PredicateName:
324
+ Exclude:
325
+ - 'spec/**/*'
326
+ - 'lib/split/experiment.rb'
327
+ - 'lib/split/helper.rb'
328
+
329
+ # Offense count: 5
330
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
331
+ # AllowedNames: io, id, to, by, on, in, at, ip, db
332
+ Naming/UncommunicativeMethodParamName:
333
+ Exclude:
334
+ - 'lib/split/alternative.rb'
335
+ - 'lib/split/zscore.rb'
336
+
337
+ # Offense count: 6
338
+ # Configuration parameters: EnforcedStyle.
339
+ # SupportedStyles: snake_case, normalcase, non_integer
340
+ Naming/VariableNumber:
341
+ Exclude:
342
+ - 'lib/split/zscore.rb'
343
+
344
+ # Offense count: 1
345
+ # Cop supports --auto-correct.
346
+ # Configuration parameters: EnforcedStyle.
347
+ # SupportedStyles: always, conditionals
348
+ Style/AndOr:
349
+ Exclude:
350
+ - 'lib/split/experiment_catalog.rb'
351
+
352
+ # Offense count: 2
353
+ # Configuration parameters: AllowedChars.
354
+ Style/AsciiComments:
355
+ Exclude:
356
+ - 'lib/split/zscore.rb'
357
+
358
+ # Offense count: 4
359
+ # Cop supports --auto-correct.
360
+ # Configuration parameters: EnforcedStyle.
361
+ # SupportedStyles: percent_q, bare_percent
362
+ Style/BarePercentLiterals:
363
+ Exclude:
364
+ - 'lib/split/dashboard/pagination_helpers.rb'
365
+
366
+ # Offense count: 8
367
+ Style/CaseEquality:
368
+ Exclude:
369
+ - 'lib/split/alternative.rb'
370
+ - 'lib/split/experiment_catalog.rb'
371
+ - 'lib/split/helper.rb'
372
+ - 'lib/split/metric.rb'
373
+
374
+ # Offense count: 5
375
+ # Cop supports --auto-correct.
376
+ # Configuration parameters: EnforcedStyle.
377
+ # SupportedStyles: is_a?, kind_of?
378
+ Style/ClassCheck:
379
+ Exclude:
380
+ - 'lib/split/alternative.rb'
381
+ - 'lib/split/configuration.rb'
382
+ - 'lib/split/experiment.rb'
383
+ - 'lib/split/goals_collection.rb'
384
+ - 'lib/split/trial.rb'
385
+
386
+ # Offense count: 1
387
+ # Cop supports --auto-correct.
388
+ Style/ColonMethodCall:
389
+ Exclude:
390
+ - 'lib/split/combined_experiments_helper.rb'
391
+
392
+ # Offense count: 1
393
+ # Cop supports --auto-correct.
394
+ # Configuration parameters: Keywords.
395
+ # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
396
+ Style/CommentAnnotation:
397
+ Exclude:
398
+ - 'lib/split/configuration.rb'
399
+
400
+ # Offense count: 2
401
+ # Cop supports --auto-correct.
402
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
403
+ # SupportedStyles: assign_to_condition, assign_inside_condition
404
+ Style/ConditionalAssignment:
405
+ Exclude:
406
+ - 'lib/split/dashboard.rb'
407
+ - 'lib/split/persistence/redis_adapter.rb'
408
+
409
+ # Offense count: 1
410
+ # Cop supports --auto-correct.
411
+ Style/DefWithParentheses:
412
+ Exclude:
413
+ - 'lib/split/helper.rb'
414
+
415
+ # Offense count: 29
416
+ Style/Documentation:
417
+ Enabled: false
418
+
419
+ # Offense count: 3
420
+ # Cop supports --auto-correct.
421
+ # Configuration parameters: EnforcedStyle.
422
+ # SupportedStyles: empty, nil, both
423
+ Style/EmptyElse:
424
+ Exclude:
425
+ - 'lib/split/experiment.rb'
426
+ - 'lib/split/metric.rb'
427
+
428
+ # Offense count: 1
429
+ # Cop supports --auto-correct.
430
+ Style/Encoding:
431
+ Exclude:
432
+ - 'split.gemspec'
433
+
434
+ # Offense count: 1
435
+ # Cop supports --auto-correct.
436
+ Style/ExpandPathArguments:
437
+ Exclude:
438
+ - 'split.gemspec'
439
+
440
+ # Offense count: 13
441
+ # Configuration parameters: MinBodyLength.
442
+ Style/GuardClause:
443
+ Exclude:
444
+ - 'lib/split/alternative.rb'
445
+ - 'lib/split/configuration.rb'
446
+ - 'lib/split/experiment.rb'
447
+ - 'lib/split/goals_collection.rb'
448
+ - 'lib/split/helper.rb'
449
+ - 'lib/split/persistence/dual_adapter.rb'
450
+ - 'lib/split/trial.rb'
451
+
452
+ # Offense count: 25
453
+ # Cop supports --auto-correct.
454
+ # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
455
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
456
+ Style/HashSyntax:
457
+ Exclude:
458
+ - 'Rakefile'
459
+ - 'lib/split.rb'
460
+ - 'lib/split/experiment.rb'
461
+ - 'lib/split/experiment_catalog.rb'
462
+ - 'lib/split/helper.rb'
463
+ - 'lib/split/metric.rb'
464
+ - 'lib/split/persistence.rb'
465
+ - 'lib/split/persistence/redis_adapter.rb'
466
+
467
+ # Offense count: 4
468
+ Style/IdenticalConditionalBranches:
469
+ Exclude:
470
+ - 'lib/split/configuration.rb'
471
+ - 'lib/split/experiment.rb'
472
+
473
+ # Offense count: 14
474
+ # Cop supports --auto-correct.
475
+ Style/IfUnlessModifier:
476
+ Exclude:
477
+ - 'lib/split/alternative.rb'
478
+ - 'lib/split/experiment.rb'
479
+ - 'lib/split/experiment_catalog.rb'
480
+ - 'lib/split/goals_collection.rb'
481
+ - 'lib/split/metric.rb'
482
+ - 'lib/split/trial.rb'
483
+ - 'lib/split/user.rb'
484
+
485
+ # Offense count: 1
486
+ # Cop supports --auto-correct.
487
+ # Configuration parameters: EnforcedStyle.
488
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
489
+ Style/MethodDefParentheses:
490
+ Exclude:
491
+ - 'lib/split/configuration.rb'
492
+
493
+ # Offense count: 1
494
+ # Cop supports --auto-correct.
495
+ # Configuration parameters: EnforcedStyle, Autocorrect.
496
+ # SupportedStyles: module_function, extend_self
497
+ Style/ModuleFunction:
498
+ Exclude:
499
+ - 'lib/split.rb'
500
+
501
+ # Offense count: 1
502
+ # Cop supports --auto-correct.
503
+ # Configuration parameters: EnforcedStyle.
504
+ # SupportedStyles: literals, strict
505
+ Style/MutableConstant:
506
+ Exclude:
507
+ - 'lib/split/experiment.rb'
508
+
509
+ # Offense count: 1
510
+ # Cop supports --auto-correct.
511
+ # Configuration parameters: EnforcedStyle.
512
+ # SupportedStyles: both, prefix, postfix
513
+ Style/NegatedIf:
514
+ Exclude:
515
+ - 'lib/split/user.rb'
516
+
517
+ # Offense count: 1
518
+ # Cop supports --auto-correct.
519
+ # Configuration parameters: IncludeSemanticChanges.
520
+ Style/NonNilCheck:
521
+ Exclude:
522
+ - 'lib/split/configuration.rb'
523
+
524
+ # Offense count: 1
525
+ # Cop supports --auto-correct.
526
+ Style/Not:
527
+ Exclude:
528
+ - 'lib/split/experiment_catalog.rb'
529
+
530
+ # Offense count: 2
531
+ # Cop supports --auto-correct.
532
+ # Configuration parameters: Strict.
533
+ Style/NumericLiterals:
534
+ MinDigits: 9
535
+
536
+ # Offense count: 3
537
+ # Cop supports --auto-correct.
538
+ # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
539
+ # SupportedStyles: predicate, comparison
540
+ Style/NumericPredicate:
541
+ Exclude:
542
+ - 'spec/**/*'
543
+ - 'lib/split/experiment.rb'
544
+ - 'lib/split/trial.rb'
545
+ - 'lib/split/user.rb'
546
+
547
+ # Offense count: 2
548
+ # Cop supports --auto-correct.
549
+ Style/ParallelAssignment:
550
+ Exclude:
551
+ - 'lib/split/experiment_catalog.rb'
552
+ - 'lib/split/persistence/cookie_adapter.rb'
553
+
554
+ # Offense count: 1
555
+ # Cop supports --auto-correct.
556
+ # Configuration parameters: EnforcedStyle.
557
+ # SupportedStyles: short, verbose
558
+ Style/PreferredHashMethods:
559
+ Exclude:
560
+ - 'lib/split/configuration.rb'
561
+
562
+ # Offense count: 2
563
+ # Cop supports --auto-correct.
564
+ # Configuration parameters: EnforcedStyle.
565
+ # SupportedStyles: compact, exploded
566
+ Style/RaiseArgs:
567
+ Exclude:
568
+ - 'lib/split/configuration.rb'
569
+ - 'lib/split/experiment.rb'
570
+
571
+ # Offense count: 6
572
+ # Cop supports --auto-correct.
573
+ Style/RedundantParentheses:
574
+ Exclude:
575
+ - 'lib/split/alternative.rb'
576
+ - 'lib/split/zscore.rb'
577
+
578
+ # Offense count: 11
579
+ # Cop supports --auto-correct.
580
+ # Configuration parameters: AllowMultipleReturnValues.
581
+ Style/RedundantReturn:
582
+ Exclude:
583
+ - 'lib/split/alternative.rb'
584
+ - 'lib/split/experiment.rb'
585
+ - 'lib/split/experiment_catalog.rb'
586
+ - 'lib/split/helper.rb'
587
+ - 'lib/split/metric.rb'
588
+ - 'lib/split/zscore.rb'
589
+
590
+ # Offense count: 21
591
+ # Cop supports --auto-correct.
592
+ Style/RedundantSelf:
593
+ Exclude:
594
+ - 'lib/split.rb'
595
+ - 'lib/split/alternative.rb'
596
+ - 'lib/split/configuration.rb'
597
+ - 'lib/split/experiment.rb'
598
+ - 'lib/split/extensions/string.rb'
599
+ - 'lib/split/metric.rb'
600
+ - 'lib/split/persistence/dual_adapter.rb'
601
+ - 'lib/split/persistence/redis_adapter.rb'
602
+ - 'lib/split/trial.rb'
603
+
604
+ # Offense count: 2
605
+ # Cop supports --auto-correct.
606
+ Style/RescueModifier:
607
+ Exclude:
608
+ - 'lib/split/alternative.rb'
609
+ - 'lib/split/configuration.rb'
610
+
611
+ # Offense count: 5
612
+ # Cop supports --auto-correct.
613
+ # Configuration parameters: EnforcedStyle.
614
+ # SupportedStyles: implicit, explicit
615
+ Style/RescueStandardError:
616
+ Exclude:
617
+ - 'lib/split/alternative.rb'
618
+ - 'lib/split/experiment.rb'
619
+ - 'lib/split/helper.rb'
620
+
621
+ # Offense count: 2
622
+ # Cop supports --auto-correct.
623
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
624
+ # Whitelist: present?, blank?, presence, try, try!
625
+ Style/SafeNavigation:
626
+ Exclude:
627
+ - 'lib/split/configuration.rb'
628
+ - 'lib/split/helper.rb'
629
+
630
+ # Offense count: 1
631
+ # Cop supports --auto-correct.
632
+ # Configuration parameters: AllowAsExpressionSeparator.
633
+ Style/Semicolon:
634
+ Exclude:
635
+ - 'lib/split/algorithms/whiplash.rb'
636
+
637
+ # Offense count: 1
638
+ # Cop supports --auto-correct.
639
+ # Configuration parameters: .
640
+ # SupportedStyles: use_perl_names, use_english_names
641
+ Style/SpecialGlobalVars:
642
+ EnforcedStyle: use_perl_names
643
+
644
+ # Offense count: 86
645
+ # Cop supports --auto-correct.
646
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
647
+ # SupportedStyles: single_quotes, double_quotes
648
+ Style/StringLiterals:
649
+ Enabled: false
650
+
651
+ # Offense count: 3
652
+ # Cop supports --auto-correct.
653
+ # Configuration parameters: IgnoredMethods.
654
+ # IgnoredMethods: respond_to, define_method
655
+ Style/SymbolProc:
656
+ Exclude:
657
+ - 'lib/split/experiment.rb'
658
+ - 'lib/split/experiment_catalog.rb'
659
+ - 'lib/split/metric.rb'
660
+
661
+ # Offense count: 1
662
+ # Cop supports --auto-correct.
663
+ # Configuration parameters: AllowNamedUnderscoreVariables.
664
+ Style/TrailingUnderscoreVariable:
665
+ Exclude:
666
+ - 'lib/split/helper.rb'
667
+
668
+ # Offense count: 1
669
+ # Cop supports --auto-correct.
670
+ Style/ZeroLengthPredicate:
671
+ Exclude:
672
+ - 'lib/split/user.rb'
673
+
674
+ # Offense count: 74
675
+ # Cop supports --auto-correct.
676
+ # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
677
+ # URISchemes: http, https
678
+ Metrics/LineLength:
679
+ Max: 183