mambu 0.1.0

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