broadside 2.0.0 → 3.0.0.pre.prerelease

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