matchy_matchy 0.1.0

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