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