html2doc 0.0.1

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