hivent 1.0.1

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