argparser 1.0.0 → 1.0.1

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