token_master 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1166 -0
  3. data/README.md +58 -99
  4. data/dummy/.gitignore +18 -0
  5. data/dummy/Gemfile +30 -0
  6. data/dummy/Rakefile +6 -0
  7. data/dummy/app/assets/config/manifest.js +3 -0
  8. data/dummy/app/assets/images/.keep +0 -0
  9. data/dummy/app/assets/javascripts/application.js +16 -0
  10. data/dummy/app/assets/javascripts/cable.js +13 -0
  11. data/dummy/app/assets/javascripts/channels/.keep +0 -0
  12. data/dummy/app/assets/stylesheets/application.css +15 -0
  13. data/dummy/app/channels/application_cable/channel.rb +4 -0
  14. data/dummy/app/channels/application_cable/connection.rb +4 -0
  15. data/dummy/app/controllers/application_controller.rb +3 -0
  16. data/dummy/app/controllers/concerns/.keep +0 -0
  17. data/dummy/app/helpers/application_helper.rb +2 -0
  18. data/dummy/app/jobs/application_job.rb +2 -0
  19. data/dummy/app/mailers/application_mailer.rb +4 -0
  20. data/dummy/app/models/application_record.rb +3 -0
  21. data/dummy/app/models/concerns/.keep +0 -0
  22. data/dummy/app/models/user.rb +10 -0
  23. data/dummy/app/views/layouts/application.html.erb +14 -0
  24. data/dummy/app/views/layouts/mailer.html.erb +13 -0
  25. data/dummy/app/views/layouts/mailer.text.erb +1 -0
  26. data/dummy/bin/bundle +3 -0
  27. data/dummy/bin/rails +9 -0
  28. data/dummy/bin/rake +9 -0
  29. data/dummy/bin/setup +34 -0
  30. data/dummy/bin/spring +17 -0
  31. data/dummy/bin/update +29 -0
  32. data/dummy/config.ru +5 -0
  33. data/dummy/config/application.rb +15 -0
  34. data/dummy/config/boot.rb +3 -0
  35. data/dummy/config/cable.yml +9 -0
  36. data/dummy/config/database.yml +14 -0
  37. data/dummy/config/environment.rb +6 -0
  38. data/dummy/config/environments/development.rb +54 -0
  39. data/dummy/config/environments/test.rb +42 -0
  40. data/dummy/config/initializers/assets.rb +11 -0
  41. data/dummy/config/initializers/cookies_serializer.rb +5 -0
  42. data/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  43. data/dummy/config/initializers/new_framework_defaults.rb +24 -0
  44. data/dummy/config/initializers/session_store.rb +3 -0
  45. data/dummy/config/initializers/token_master.rb +29 -0
  46. data/dummy/config/initializers/wrap_parameters.rb +14 -0
  47. data/dummy/config/locales/en.yml +23 -0
  48. data/dummy/config/puma.rb +47 -0
  49. data/dummy/config/routes.rb +3 -0
  50. data/dummy/config/secrets.yml +9 -0
  51. data/dummy/config/spring.rb +6 -0
  52. data/dummy/db/migrate/20170505170857_create_users.rb +11 -0
  53. data/dummy/db/migrate/20170505171217_add_confirm_tokenable_to_users.rb +26 -0
  54. data/dummy/db/schema.rb +41 -0
  55. data/dummy/db/seeds.rb +14 -0
  56. data/dummy/spec/factories/users.rb +8 -0
  57. data/dummy/spec/models/user_spec.rb +12 -0
  58. data/dummy/spec/rails_helper.rb +54 -0
  59. data/dummy/spec/spec_helper.rb +85 -0
  60. data/dummy/spec/support/factory_bot.rb +3 -0
  61. data/dummy/spec/support/shoulda_matchers.rb +6 -0
  62. data/lib/token_master/core.rb +14 -0
  63. data/lib/token_master/model.rb +6 -1
  64. data/lib/token_master/version.rb +1 -1
  65. metadata +62 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48a3159976ca2feddf66504199682c578b9ef048
4
- data.tar.gz: c5120e25a020b9f1393cc7cfa18a6a3cb7e7fbea
3
+ metadata.gz: 23d910166004e7eafd9b9136931b5fd09171192c
4
+ data.tar.gz: 920db2f4ec94f69cb70eddfe131a3f2341d157e6
5
5
  SHA512:
6
- metadata.gz: 2c72d6e9cb432a925d891829bef929924ac3e332483b840f66162e26ea3805dbf7386e334402aeb61e89187a5a311e1cfbff2d9b2c7f01615dce17d04a4db461
7
- data.tar.gz: 7f50489002c24c58f83bc3676acf2b4edd7ae3b8bb4682e11f6866f923f6f4c79fd1360b79abb4dd40860d1f06bee519443d6692603f1d7e4b75838cf7ac65f1
6
+ metadata.gz: a9a1bbe691892114e4cc736e0c99578065dfb11f4e474e080fec5f68b7bf03ed7dbe77ac8e6b2355356006026d320eb07663ae4f445d526da8bf9bb44f9b8fef
7
+ data.tar.gz: 7e973ad47fd388a295c9edd50a88045e2c5d567f5a9c4e47efbecd58aaf19954e562eefa6e2957e31893c89faa3abf44e43543533df2d91711f0a107400b4c76
@@ -0,0 +1,1166 @@
1
+ AllCops:
2
+ DisabledByDefault: true
3
+ Exclude:
4
+ - db/schema.rb
5
+ - Gemfile*
6
+ - config/*
7
+ - node_modules/**/*
8
+
9
+ #################### Lint ################################
10
+
11
+ Lint/AmbiguousOperator:
12
+ Description: >-
13
+ Checks for ambiguous operators in the first argument of a
14
+ method invocation without parentheses.
15
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
16
+ Enabled: true
17
+
18
+ Lint/AmbiguousRegexpLiteral:
19
+ Description: >-
20
+ Checks for ambiguous regexp literals in the first argument of
21
+ a method invocation without parenthesis.
22
+ Enabled: true
23
+
24
+ Lint/AssignmentInCondition:
25
+ Description: "Don't use assignment in conditions."
26
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
27
+ Enabled: true
28
+
29
+ Lint/BlockAlignment:
30
+ Description: 'Align block ends correctly.'
31
+ Enabled: true
32
+
33
+ Lint/CircularArgumentReference:
34
+ Description: "Don't refer to the keyword argument in the default value."
35
+ Enabled: true
36
+
37
+ Lint/ConditionPosition:
38
+ Description: >-
39
+ Checks for condition placed in a confusing position relative to
40
+ the keyword.
41
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
42
+ Enabled: true
43
+
44
+ Lint/Debugger:
45
+ Description: 'Check for debugger calls.'
46
+ Enabled: true
47
+
48
+ Lint/DefEndAlignment:
49
+ Description: 'Align ends corresponding to defs correctly.'
50
+ Enabled: true
51
+
52
+ Lint/DeprecatedClassMethods:
53
+ Description: 'Check for deprecated class method calls.'
54
+ Enabled: true
55
+
56
+ Lint/DuplicateMethods:
57
+ Description: 'Check for duplicate methods calls.'
58
+ Enabled: true
59
+
60
+ Lint/EachWithObjectArgument:
61
+ Description: 'Check for immutable argument given to each_with_object.'
62
+ Enabled: true
63
+
64
+ Lint/ElseLayout:
65
+ Description: 'Check for odd code arrangement in an else block.'
66
+ Enabled: true
67
+
68
+ Lint/EmptyEnsure:
69
+ Description: 'Checks for empty ensure block.'
70
+ Enabled: true
71
+
72
+ Lint/EmptyInterpolation:
73
+ Description: 'Checks for empty string interpolation.'
74
+ Enabled: true
75
+
76
+ Lint/EndAlignment:
77
+ Description: 'Align ends correctly.'
78
+ Enabled: true
79
+
80
+ Lint/EndInMethod:
81
+ Description: 'END blocks should not be placed inside method definitions.'
82
+ Enabled: true
83
+
84
+ Lint/EnsureReturn:
85
+ Description: 'Do not use return in an ensure block.'
86
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
87
+ Enabled: true
88
+
89
+ Lint/FormatParameterMismatch:
90
+ Description: 'The number of parameters to format/sprint must match the fields.'
91
+ Enabled: true
92
+
93
+ Lint/HandleExceptions:
94
+ Description: "Don't suppress exception."
95
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
96
+ Enabled: true
97
+
98
+ Lint/InvalidCharacterLiteral:
99
+ Description: >-
100
+ Checks for invalid character literals with a non-escaped
101
+ whitespace character.
102
+ Enabled: true
103
+
104
+ Lint/LiteralInCondition:
105
+ Description: 'Checks of literals used in conditions.'
106
+ Enabled: true
107
+
108
+ Lint/LiteralInInterpolation:
109
+ Description: 'Checks for literals used in interpolation.'
110
+ Enabled: true
111
+
112
+ Lint/Loop:
113
+ Description: >-
114
+ Use Kernel#loop with break rather than begin/end/until or
115
+ begin/end/while for post-loop tests.
116
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
117
+ Enabled: true
118
+
119
+ Lint/NestedMethodDefinition:
120
+ Description: 'Do not use nested method definitions.'
121
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
122
+ Enabled: true
123
+
124
+ Lint/NonLocalExitFromIterator:
125
+ Description: 'Do not use return in iterator to cause non-local exit.'
126
+ Enabled: true
127
+
128
+ Lint/ParenthesesAsGroupedExpression:
129
+ Description: >-
130
+ Checks for method calls with a space before the opening
131
+ parenthesis.
132
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
133
+ Enabled: true
134
+
135
+ Lint/RequireParentheses:
136
+ Description: >-
137
+ Use parentheses in the method call to avoid confusion
138
+ about precedence.
139
+ Enabled: true
140
+
141
+ Lint/RescueException:
142
+ Description: 'Avoid rescuing the Exception class.'
143
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
144
+ Enabled: true
145
+
146
+ Lint/ShadowingOuterLocalVariable:
147
+ Description: >-
148
+ Do not use the same name as outer local variable
149
+ for block arguments or block local variables.
150
+ Enabled: true
151
+
152
+ Lint/StringConversionInInterpolation:
153
+ Description: 'Checks for Object#to_s usage in string interpolation.'
154
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
155
+ Enabled: true
156
+
157
+ Lint/UnderscorePrefixedVariableName:
158
+ Description: 'Do not use prefix `_` for a variable that is used.'
159
+ Enabled: true
160
+
161
+ Lint/UnneededDisable:
162
+ Description: >-
163
+ Checks for rubocop:disable comments that can be removed.
164
+ Note: this cop is not disabled when disabling all cops.
165
+ It must be explicitly disabled.
166
+ Enabled: true
167
+
168
+ Lint/UnusedBlockArgument:
169
+ Description: 'Checks for unused block arguments.'
170
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
171
+ Enabled: true
172
+
173
+ Lint/UnusedMethodArgument:
174
+ Description: 'Checks for unused method arguments.'
175
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
176
+ Enabled: true
177
+
178
+ Lint/UnreachableCode:
179
+ Description: 'Unreachable code.'
180
+ Enabled: true
181
+
182
+ Lint/UselessAccessModifier:
183
+ Description: 'Checks for useless access modifiers.'
184
+ Enabled: true
185
+
186
+ Lint/UselessAssignment:
187
+ Description: 'Checks for useless assignment to a local variable.'
188
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
189
+ Enabled: true
190
+
191
+ Lint/UselessComparison:
192
+ Description: 'Checks for comparison of something with itself.'
193
+ Enabled: true
194
+
195
+ Lint/UselessElseWithoutRescue:
196
+ Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
197
+ Enabled: true
198
+
199
+ Lint/UselessSetterCall:
200
+ Description: 'Checks for useless setter call to a local variable.'
201
+ Enabled: true
202
+
203
+ Lint/Void:
204
+ Description: 'Possible use of operator/literal/variable in void context.'
205
+ Enabled: true
206
+
207
+ ###################### Metrics ####################################
208
+
209
+ Metrics/AbcSize:
210
+ Description: >-
211
+ A calculated magnitude based on number of assignments,
212
+ branches, and conditions.
213
+ Reference: 'http://c2.com/cgi/wiki?AbcMetric'
214
+ Enabled: false
215
+ Max: 20
216
+
217
+ Metrics/BlockNesting:
218
+ Description: 'Avoid excessive block nesting'
219
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
220
+ Enabled: true
221
+ Max: 4
222
+
223
+ Metrics/ClassLength:
224
+ Description: 'Avoid classes longer than 250 lines of code.'
225
+ Enabled: true
226
+ Max: 250
227
+
228
+ Metrics/CyclomaticComplexity:
229
+ Description: >-
230
+ A complexity metric that is strongly correlated to the number
231
+ of test cases needed to validate a method.
232
+ Enabled: true
233
+
234
+ Metrics/LineLength:
235
+ Description: 'Limit lines to 80 characters.'
236
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
237
+ Enabled: false
238
+
239
+ Metrics/MethodLength:
240
+ Description: 'Avoid methods longer than 30 lines of code.'
241
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
242
+ Enabled: true
243
+ Max: 30
244
+
245
+ Metrics/ModuleLength:
246
+ Description: 'Avoid modules longer than 250 lines of code.'
247
+ Enabled: true
248
+ Max: 250
249
+
250
+ Metrics/ParameterLists:
251
+ Description: 'Avoid parameter lists longer than three or four parameters.'
252
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
253
+ Enabled: true
254
+
255
+ Metrics/PerceivedComplexity:
256
+ Description: >-
257
+ A complexity metric geared towards measuring complexity for a
258
+ human reader.
259
+ Enabled: false
260
+
261
+ ##################### Performance #############################
262
+
263
+ Performance/Count:
264
+ Description: >-
265
+ Use `count` instead of `select...size`, `reject...size`,
266
+ `select...count`, `reject...count`, `select...length`,
267
+ and `reject...length`.
268
+ Enabled: true
269
+
270
+ Performance/Detect:
271
+ Description: >-
272
+ Use `detect` instead of `select.first`, `find_all.first`,
273
+ `select.last`, and `find_all.last`.
274
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
275
+ Enabled: true
276
+
277
+ Performance/FlatMap:
278
+ Description: >-
279
+ Use `Enumerable#flat_map`
280
+ instead of `Enumerable#map...Array#flatten(1)`
281
+ or `Enumberable#collect..Array#flatten(1)`
282
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
283
+ Enabled: true
284
+ EnabledForFlattenWithoutParams: false
285
+ # If enabled, this cop will warn about usages of
286
+ # `flatten` being called without any parameters.
287
+ # This can be dangerous since `flat_map` will only flatten 1 level, and
288
+ # `flatten` without any parameters can flatten multiple levels.
289
+
290
+ Performance/ReverseEach:
291
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
292
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
293
+ Enabled: true
294
+
295
+ Performance/Sample:
296
+ Description: >-
297
+ Use `sample` instead of `shuffle.first`,
298
+ `shuffle.last`, and `shuffle[Fixnum]`.
299
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
300
+ Enabled: true
301
+
302
+ Performance/Size:
303
+ Description: >-
304
+ Use `size` instead of `count` for counting
305
+ the number of elements in `Array` and `Hash`.
306
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
307
+ Enabled: true
308
+
309
+ Performance/StringReplacement:
310
+ Description: >-
311
+ Use `tr` instead of `gsub` when you are replacing the same
312
+ number of characters. Use `delete` instead of `gsub` when
313
+ you are deleting characters.
314
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
315
+ Enabled: true
316
+
317
+ ##################### Rails ##################################
318
+
319
+ Rails/ActionFilter:
320
+ Description: 'Enforces consistent use of action filter methods.'
321
+ Enabled: true
322
+
323
+ Rails/Date:
324
+ Description: >-
325
+ Checks the correct usage of date aware methods,
326
+ such as Date.today, Date.current etc.
327
+ Enabled: true
328
+
329
+ Rails/Delegate:
330
+ Description: 'Prefer delegate method for delegations.'
331
+ Enabled: true
332
+
333
+ Rails/FindBy:
334
+ Description: 'Prefer find_by over where.first.'
335
+ Enabled: true
336
+
337
+ Rails/FindEach:
338
+ Description: 'Prefer all.find_each over all.find.'
339
+ Enabled: false
340
+
341
+ Rails/HasAndBelongsToMany:
342
+ Description: 'Prefer has_many :through to has_and_belongs_to_many.'
343
+ Enabled: false
344
+
345
+ Rails/Output:
346
+ Description: 'Checks for calls to puts, print, etc.'
347
+ Enabled: false
348
+
349
+ Rails/ReadWriteAttribute:
350
+ Description: >-
351
+ Checks for read_attribute(:attr) and
352
+ write_attribute(:attr, val).
353
+ Enabled: false
354
+
355
+ Rails/ScopeArgs:
356
+ Description: 'Checks the arguments of ActiveRecord scopes.'
357
+ Enabled: false
358
+
359
+ Rails/TimeZone:
360
+ Description: 'Checks the correct usage of time zone aware methods.'
361
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
362
+ Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
363
+ Enabled: false
364
+
365
+ Rails/Validation:
366
+ Description: 'Use validates :attribute, hash of validations.'
367
+ Enabled: false
368
+
369
+ ################## Security #################################
370
+
371
+ Security/Eval:
372
+ Description: 'The use of eval represents a serious security risk.'
373
+ Enabled: true
374
+
375
+ ################## Style #################################
376
+
377
+ Style/AccessModifierIndentation:
378
+ Description: Check indentation of private/protected visibility modifiers.
379
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
380
+ Enabled: true
381
+
382
+ Style/AccessorMethodName:
383
+ Description: Check the naming of accessor methods for get_/set_.
384
+ Enabled: false
385
+
386
+ Style/Alias:
387
+ Description: 'Use alias_method instead of alias.'
388
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
389
+ Enabled: false
390
+
391
+ Style/AlignArray:
392
+ Description: >-
393
+ Align the elements of an array literal if they span more than
394
+ one line.
395
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
396
+ Enabled: true
397
+
398
+ Style/AlignHash:
399
+ Description: >-
400
+ Align the elements of a hash literal if they span more than
401
+ one line.
402
+ Enabled: true
403
+
404
+ Style/AlignParameters:
405
+ Description: >-
406
+ Align the parameters of a method call if they span more
407
+ than one line.
408
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
409
+ Enabled: true
410
+
411
+ Style/AndOr:
412
+ Description: 'Use &&/|| instead of and/or.'
413
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
414
+ Enabled: true
415
+
416
+ Style/ArrayJoin:
417
+ Description: 'Use Array#join instead of Array#*.'
418
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
419
+ Enabled: true
420
+
421
+ Style/AsciiComments:
422
+ Description: 'Use only ascii symbols in comments.'
423
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
424
+ Enabled: false
425
+
426
+ Style/AsciiIdentifiers:
427
+ Description: 'Use only ascii symbols in identifiers.'
428
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
429
+ Enabled: true
430
+
431
+ Style/Attr:
432
+ Description: 'Checks for uses of Module#attr.'
433
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
434
+ Enabled: false
435
+
436
+ Style/BeginBlock:
437
+ Description: 'Avoid the use of BEGIN blocks.'
438
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
439
+ Enabled: false
440
+
441
+ Style/BarePercentLiterals:
442
+ Description: 'Checks if usage of %() or %Q() matches configuration.'
443
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
444
+ Enabled: false
445
+
446
+ Style/BlockComments:
447
+ Description: 'Do not use block comments.'
448
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
449
+ Enabled: false
450
+
451
+ Style/BlockEndNewline:
452
+ Description: 'Put end statement of multiline block on its own line.'
453
+ Enabled: true
454
+
455
+ Style/BlockDelimiters:
456
+ Description: >-
457
+ Avoid using {...} for multi-line blocks (multiline chaining is
458
+ always ugly).
459
+ Prefer {...} over do...end for single-line blocks.
460
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
461
+ Enabled: true
462
+ Exclude:
463
+ - 'spec/controllers/*'
464
+ - 'spec/services/*'
465
+
466
+ Style/BracesAroundHashParameters:
467
+ Description: 'Enforce braces style around hash parameters.'
468
+ Enabled: false
469
+
470
+ Style/CaseEquality:
471
+ Description: 'Avoid explicit use of the case equality operator(===).'
472
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
473
+ Enabled: false
474
+
475
+ Style/CaseIndentation:
476
+ Description: 'Indentation of when in a case/when/[else/]end.'
477
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
478
+ Enabled: false
479
+
480
+ Style/CharacterLiteral:
481
+ Description: 'Checks for uses of character literals.'
482
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
483
+ Enabled: false
484
+
485
+ Style/ClassAndModuleCamelCase:
486
+ Description: 'Use CamelCase for classes and modules.'
487
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
488
+ Enabled: true
489
+
490
+ Style/ClassAndModuleChildren:
491
+ Description: 'Checks style of children classes and modules.'
492
+ Enabled: false
493
+
494
+ Style/ClassCheck:
495
+ Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
496
+ Enabled: false
497
+
498
+ Style/ClassMethods:
499
+ Description: 'Use self when defining module/class methods.'
500
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-class-methods'
501
+ Enabled: false
502
+
503
+ Style/ClassVars:
504
+ Description: 'Avoid the use of class variables.'
505
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
506
+ Enabled: false
507
+
508
+ Style/ClosingParenthesisIndentation:
509
+ Description: 'Checks the indentation of hanging closing parentheses.'
510
+ Enabled: true
511
+
512
+ Style/ColonMethodCall:
513
+ Description: 'Do not use :: for method call.'
514
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
515
+ Enabled: false
516
+
517
+ Style/CommandLiteral:
518
+ Description: 'Use `` or %x around command literals.'
519
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
520
+ Enabled: false
521
+
522
+ Style/CommentAnnotation:
523
+ Description: 'Checks formatting of annotation comments.'
524
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
525
+ Enabled: false
526
+
527
+ Style/CommentIndentation:
528
+ Description: 'Indentation of comments.'
529
+ Enabled: false
530
+
531
+ Style/ConstantName:
532
+ Description: 'Constants should use SCREAMING_SNAKE_CASE.'
533
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
534
+ Enabled: true
535
+
536
+ Style/DefWithParentheses:
537
+ Description: 'Use def with parentheses when there are arguments.'
538
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
539
+ Enabled: true
540
+
541
+ Style/PreferredHashMethods:
542
+ Description: 'Checks for use of deprecated Hash methods.'
543
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
544
+ Enabled: true
545
+
546
+ Style/Documentation:
547
+ Description: 'Document classes and non-namespace modules.'
548
+ Enabled: false
549
+
550
+ Style/DotPosition:
551
+ Description: 'Checks the position of the dot in multi-line method calls.'
552
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
553
+ Enabled: true
554
+
555
+ Style/DoubleNegation:
556
+ Description: 'Checks for uses of double negation (!!).'
557
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
558
+ Enabled: false
559
+
560
+ Style/EachWithObject:
561
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
562
+ Enabled: false
563
+
564
+ Style/ElseAlignment:
565
+ Description: 'Align elses and elsifs correctly.'
566
+ Enabled: true
567
+
568
+ Style/EmptyElse:
569
+ Description: 'Avoid empty else-clauses.'
570
+ Enabled: true
571
+
572
+ Style/EmptyLineBetweenDefs:
573
+ Description: 'Use empty lines between defs.'
574
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
575
+ Enabled: true
576
+
577
+ Style/EmptyLines:
578
+ Description: "Don't use several empty lines in a row."
579
+ Enabled: true
580
+
581
+ Style/EmptyLinesAroundAccessModifier:
582
+ Description: "Keep blank lines around access modifiers."
583
+ Enabled: false
584
+
585
+ Style/EmptyLinesAroundBlockBody:
586
+ Description: "Keeps track of empty lines around block bodies."
587
+ Enabled: false
588
+
589
+ Style/EmptyLinesAroundClassBody:
590
+ Description: "Keeps track of empty lines around class bodies."
591
+ Enabled: false
592
+
593
+ Style/EmptyLinesAroundModuleBody:
594
+ Description: "Keeps track of empty lines around module bodies."
595
+ Enabled: false
596
+
597
+ Style/EmptyLinesAroundMethodBody:
598
+ Description: "Keeps track of empty lines around method bodies."
599
+ Enabled: false
600
+
601
+ Style/EmptyLiteral:
602
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
603
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
604
+ Enabled: false
605
+
606
+ Style/EndBlock:
607
+ Description: 'Avoid the use of END blocks.'
608
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
609
+ Enabled: false
610
+
611
+ Style/EndOfLine:
612
+ Description: 'Use Unix-style line endings.'
613
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
614
+ Enabled: false
615
+
616
+ Style/EvenOdd:
617
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
618
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
619
+ Enabled: false
620
+
621
+ Style/ExtraSpacing:
622
+ Description: 'Do not use unnecessary spacing.'
623
+ Enabled: true
624
+
625
+ Style/FileName:
626
+ Description: 'Use snake_case for source file names.'
627
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
628
+ Enabled: true
629
+
630
+ Style/InitialIndentation:
631
+ Description: >-
632
+ Checks the indentation of the first non-blank non-comment line in a file.
633
+ Enabled: true
634
+
635
+ Style/FirstParameterIndentation:
636
+ Description: 'Checks the indentation of the first parameter in a method call.'
637
+ Enabled: true
638
+
639
+ Style/FlipFlop:
640
+ Description: 'Checks for flip flops'
641
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
642
+ Enabled: false
643
+
644
+ Style/For:
645
+ Description: 'Checks use of for or each in multiline loops.'
646
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
647
+ Enabled: false
648
+
649
+ Style/FormatString:
650
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
651
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
652
+ Enabled: false
653
+
654
+ Style/GlobalVars:
655
+ Description: 'Do not introduce global variables.'
656
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
657
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
658
+ Enabled: false
659
+
660
+ Style/GuardClause:
661
+ Description: 'Check for conditionals that can be replaced with guard clauses'
662
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
663
+ Enabled: true
664
+
665
+ Style/HashSyntax:
666
+ Description: >-
667
+ Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
668
+ { :a => 1, :b => 2 }.
669
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
670
+ Enabled: true
671
+
672
+ Style/IfUnlessModifier:
673
+ Description: >-
674
+ Favor modifier if/unless usage when you have a
675
+ single-line body.
676
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
677
+ Enabled: false
678
+
679
+ Style/IfWithSemicolon:
680
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
681
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
682
+ Enabled: true
683
+
684
+ Style/IndentationConsistency:
685
+ Description: 'Keep indentation straight.'
686
+ Enabled: true
687
+
688
+ Style/IndentationWidth:
689
+ Description: 'Use 2 spaces for indentation.'
690
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
691
+ Enabled: true
692
+
693
+ Style/IndentArray:
694
+ Description: >-
695
+ Checks the indentation of the first element in an array
696
+ literal.
697
+ Enabled: true
698
+
699
+ Style/IndentHash:
700
+ Description: 'Checks the indentation of the first key in a hash literal.'
701
+ Enabled: false
702
+
703
+ Style/InfiniteLoop:
704
+ Description: 'Use Kernel#loop for infinite loops.'
705
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
706
+ Enabled: false
707
+
708
+ Style/Lambda:
709
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
710
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
711
+ Enabled: false
712
+
713
+ Style/LambdaCall:
714
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
715
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
716
+ Enabled: false
717
+
718
+ Style/LeadingCommentSpace:
719
+ Description: 'Comments should start with a space.'
720
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
721
+ Enabled: false
722
+
723
+ Style/LineEndConcatenation:
724
+ Description: >-
725
+ Use \ instead of + or << to concatenate two string literals at
726
+ line end.
727
+ Enabled: false
728
+
729
+ Style/MethodCallWithoutArgsParentheses:
730
+ Description: 'Do not use parentheses for method calls with no arguments.'
731
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
732
+ Enabled: false
733
+
734
+ Style/MethodDefParentheses:
735
+ Description: >-
736
+ Checks if the method definitions have or don't have
737
+ parentheses.
738
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
739
+ Enabled: false
740
+
741
+ Style/MethodName:
742
+ Description: 'Use the configured style when naming methods.'
743
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
744
+ Enabled: false
745
+
746
+ Style/ModuleFunction:
747
+ Description: 'Checks for usage of `extend self` in modules.'
748
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
749
+ Enabled: false
750
+
751
+ Style/MultilineBlockChain:
752
+ Description: 'Avoid multi-line chains of blocks.'
753
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
754
+ Enabled: false
755
+
756
+ Style/MultilineBlockLayout:
757
+ Description: 'Ensures newlines after multiline block do statements.'
758
+ Enabled: false
759
+
760
+ Style/MultilineIfThen:
761
+ Description: 'Do not use then for multi-line if/unless.'
762
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
763
+ Enabled: false
764
+
765
+ Style/MultilineOperationIndentation:
766
+ Description: >-
767
+ Checks indentation of binary operations that span more than
768
+ one line.
769
+ Enabled: true
770
+
771
+ Style/MultilineTernaryOperator:
772
+ Description: >-
773
+ Avoid multi-line ?: (the ternary operator);
774
+ use if/unless instead.
775
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
776
+ Enabled: true
777
+
778
+ Style/NegatedIf:
779
+ Description: >-
780
+ Favor unless over if for negative conditions
781
+ (or control flow or).
782
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
783
+ Enabled: true
784
+
785
+ Style/NegatedWhile:
786
+ Description: 'Favor until over while for negative conditions.'
787
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
788
+ Enabled: true
789
+
790
+ Style/NestedTernaryOperator:
791
+ Description: 'Use one expression per branch in a ternary operator.'
792
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
793
+ Enabled: false
794
+
795
+ Style/Next:
796
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
797
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
798
+ Enabled: false
799
+
800
+ Style/NilComparison:
801
+ Description: 'Prefer x.nil? to x == nil.'
802
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
803
+ Enabled: false
804
+
805
+ Style/NonNilCheck:
806
+ Description: 'Checks for redundant nil checks.'
807
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
808
+ Enabled: true
809
+
810
+ Style/Not:
811
+ Description: 'Use ! instead of not.'
812
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
813
+ Enabled: true
814
+
815
+ Style/NumericLiterals:
816
+ Description: >-
817
+ Add underscores to large numeric literals to improve their
818
+ readability.
819
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
820
+ Enabled: true
821
+
822
+ Style/OneLineConditional:
823
+ Description: >-
824
+ Favor the ternary operator(?:) over
825
+ if/then/else/end constructs.
826
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
827
+ Enabled: false
828
+
829
+ Style/OpMethod:
830
+ Description: 'When defining binary operators, name the argument other.'
831
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
832
+ Enabled: false
833
+
834
+ Style/OptionalArguments:
835
+ Description: >-
836
+ Checks for optional arguments that do not appear at the end
837
+ of the argument list
838
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#optional-arguments'
839
+ Enabled: false
840
+
841
+ Style/ParallelAssignment:
842
+ Description: >-
843
+ Check for simple usages of parallel assignment.
844
+ It will only warn when the number of variables
845
+ matches on both sides of the assignment.
846
+ This also provides performance benefits
847
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parallel-assignment'
848
+ Enabled: false
849
+
850
+ Style/ParenthesesAroundCondition:
851
+ Description: >-
852
+ Don't use parentheses around the condition of an
853
+ if/unless/while.
854
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
855
+ Enabled: false
856
+
857
+ Style/PercentLiteralDelimiters:
858
+ Description: 'Use `%`-literal delimiters consistently'
859
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
860
+ Enabled: false
861
+
862
+ Style/PercentQLiterals:
863
+ Description: 'Checks if uses of %Q/%q match the configured preference.'
864
+ Enabled: false
865
+
866
+ Style/PerlBackrefs:
867
+ Description: 'Avoid Perl-style regex back references.'
868
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
869
+ Enabled: false
870
+
871
+ Style/PredicateName:
872
+ Description: 'Check the names of predicate methods.'
873
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
874
+ Enabled: false
875
+
876
+ Style/Proc:
877
+ Description: 'Use proc instead of Proc.new.'
878
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
879
+ Enabled: false
880
+
881
+ Style/RaiseArgs:
882
+ Description: 'Checks the arguments passed to raise/fail.'
883
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
884
+ Enabled: false
885
+
886
+ Style/RedundantBegin:
887
+ Description: "Don't use begin blocks when they are not needed."
888
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
889
+ Enabled: false
890
+
891
+ Style/RedundantException:
892
+ Description: "Checks for an obsolete RuntimeException argument in raise/fail."
893
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
894
+ Enabled: false
895
+
896
+ Style/RedundantReturn:
897
+ Description: "Don't use return where it's not required."
898
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
899
+ Enabled: true
900
+
901
+ Style/RedundantSelf:
902
+ Description: "Don't use self where it's not needed."
903
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
904
+ Enabled: false
905
+
906
+ Style/RegexpLiteral:
907
+ Description: 'Use / or %r around regular expressions.'
908
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
909
+ Enabled: false
910
+
911
+ Style/RescueEnsureAlignment:
912
+ Description: 'Align rescues and ensures correctly.'
913
+ Enabled: false
914
+
915
+ Style/RescueModifier:
916
+ Description: 'Avoid using rescue in its modifier form.'
917
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
918
+ Enabled: false
919
+
920
+ Style/SelfAssignment:
921
+ Description: >-
922
+ Checks for places where self-assignment shorthand should have
923
+ been used.
924
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
925
+ Enabled: false
926
+
927
+ Style/Semicolon:
928
+ Description: "Don't use semicolons to terminate expressions."
929
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
930
+ Enabled: false
931
+
932
+ Style/SignalException:
933
+ Description: 'Checks for proper usage of fail and raise.'
934
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
935
+ Enabled: false
936
+
937
+ Style/SingleLineBlockParams:
938
+ Description: 'Enforces the names of some block params.'
939
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
940
+ Enabled: false
941
+
942
+ Style/SingleLineMethods:
943
+ Description: 'Avoid single-line methods.'
944
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
945
+ Enabled: false
946
+
947
+ Style/SpaceBeforeFirstArg:
948
+ Description: >-
949
+ Checks that exactly one space is used between a method name
950
+ and the first argument for method calls without parentheses.
951
+ Enabled: true
952
+
953
+ Style/SpaceAfterColon:
954
+ Description: 'Use spaces after colons.'
955
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
956
+ Enabled: true
957
+
958
+ Style/SpaceAfterComma:
959
+ Description: 'Use spaces after commas.'
960
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
961
+ Enabled: true
962
+
963
+ Style/SpaceAroundKeyword:
964
+ Description: 'Use spaces around keywords.'
965
+ Enabled: false
966
+
967
+ Style/SpaceAfterMethodName:
968
+ Description: >-
969
+ Do not put a space between a method name and the opening
970
+ parenthesis in a method definition.
971
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
972
+ Enabled: false
973
+
974
+ Style/SpaceAfterNot:
975
+ Description: Tracks redundant space after the ! operator.
976
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
977
+ Enabled: false
978
+
979
+ Style/SpaceAfterSemicolon:
980
+ Description: 'Use spaces after semicolons.'
981
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
982
+ Enabled: false
983
+
984
+ Style/SpaceBeforeBlockBraces:
985
+ Description: >-
986
+ Checks that the left block brace has or doesn't have space
987
+ before it.
988
+ Enabled: false
989
+
990
+ Style/SpaceBeforeComma:
991
+ Description: 'No spaces before commas.'
992
+ Enabled: false
993
+
994
+ Style/SpaceBeforeComment:
995
+ Description: >-
996
+ Checks for missing space between code and a comment on the
997
+ same line.
998
+ Enabled: false
999
+
1000
+ Style/SpaceBeforeSemicolon:
1001
+ Description: 'No spaces before semicolons.'
1002
+ Enabled: false
1003
+
1004
+ Style/SpaceInsideBlockBraces:
1005
+ Description: >-
1006
+ Checks that block braces have or don't have surrounding space.
1007
+ For blocks taking parameters, checks that the left brace has
1008
+ or doesn't have trailing space.
1009
+ Enabled: false
1010
+
1011
+ Style/SpaceAroundBlockParameters:
1012
+ Description: 'Checks the spacing inside and after block parameters pipes.'
1013
+ Enabled: false
1014
+
1015
+ Style/SpaceAroundEqualsInParameterDefault:
1016
+ Description: >-
1017
+ Checks that the equals signs in parameter default assignments
1018
+ have or don't have surrounding space depending on
1019
+ configuration.
1020
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
1021
+ Enabled: false
1022
+
1023
+ Style/SpaceAroundOperators:
1024
+ Description: 'Use a single space around operators.'
1025
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1026
+ Enabled: false
1027
+
1028
+ Style/SpaceInsideBrackets:
1029
+ Description: 'No spaces after [ or before ].'
1030
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1031
+ Enabled: false
1032
+
1033
+ Style/SpaceInsideHashLiteralBraces:
1034
+ Description: "Use spaces inside hash literal braces - or don't."
1035
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1036
+ Enabled: false
1037
+
1038
+ Style/SpaceInsideParens:
1039
+ Description: 'No spaces after ( or before ).'
1040
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1041
+ Enabled: true
1042
+
1043
+ Style/SpaceInsideRangeLiteral:
1044
+ Description: 'No spaces inside range literals.'
1045
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
1046
+ Enabled: false
1047
+
1048
+ Style/SpaceInsideStringInterpolation:
1049
+ Description: 'Checks for padding/surrounding spaces inside string interpolation.'
1050
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
1051
+ Enabled: false
1052
+
1053
+ Style/SpecialGlobalVars:
1054
+ Description: 'Avoid Perl-style global variables.'
1055
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
1056
+ Enabled: false
1057
+
1058
+ Style/StringLiterals:
1059
+ Description: 'Checks if uses of quotes match the configured preference.'
1060
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
1061
+ Enabled: true
1062
+
1063
+ Style/StringLiteralsInInterpolation:
1064
+ Description: >-
1065
+ Checks if uses of quotes inside expressions in interpolated
1066
+ strings match the configured preference.
1067
+ Enabled: false
1068
+
1069
+ Style/StructInheritance:
1070
+ Description: 'Checks for inheritance from Struct.new.'
1071
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
1072
+ Enabled: false
1073
+
1074
+ Style/SymbolLiteral:
1075
+ Description: 'Use plain symbols instead of string symbols when possible.'
1076
+ Enabled: true
1077
+
1078
+ Style/SymbolProc:
1079
+ Description: 'Use symbols as procs instead of blocks when possible.'
1080
+ Enabled: false
1081
+
1082
+ Style/Tab:
1083
+ Description: 'No hard tabs.'
1084
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
1085
+ Enabled: false
1086
+
1087
+ Style/TrailingBlankLines:
1088
+ Description: 'Checks trailing blank lines and final newline.'
1089
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
1090
+ Enabled: false
1091
+
1092
+ Style/TrailingCommaInArguments:
1093
+ Description: 'Checks for trailing comma in parameter lists.'
1094
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
1095
+ Enabled: false
1096
+
1097
+ Style/TrailingCommaInLiteral:
1098
+ Description: 'Checks for trailing comma in literals.'
1099
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
1100
+ Enabled: false
1101
+
1102
+ Style/TrailingWhitespace:
1103
+ Description: 'Avoid trailing whitespace.'
1104
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
1105
+ Enabled: false
1106
+
1107
+ Style/TrivialAccessors:
1108
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
1109
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
1110
+ Enabled: false
1111
+
1112
+ Style/UnlessElse:
1113
+ Description: >-
1114
+ Do not use unless with else. Rewrite these with the positive
1115
+ case first.
1116
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
1117
+ Enabled: false
1118
+
1119
+ Style/UnneededCapitalW:
1120
+ Description: 'Checks for %W when interpolation is not needed.'
1121
+ Enabled: false
1122
+
1123
+ Style/UnneededPercentQ:
1124
+ Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
1125
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
1126
+ Enabled: false
1127
+
1128
+ Style/TrailingUnderscoreVariable:
1129
+ Description: >-
1130
+ Checks for the usage of unneeded trailing underscores at the
1131
+ end of parallel variable assignment.
1132
+ Enabled: false
1133
+
1134
+ Style/VariableInterpolation:
1135
+ Description: >-
1136
+ Don't interpolate global, instance and class variables
1137
+ directly in strings.
1138
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
1139
+ Enabled: false
1140
+
1141
+ Style/VariableName:
1142
+ Description: 'Use the configured style when naming variables.'
1143
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
1144
+ Enabled: false
1145
+
1146
+ Style/WhenThen:
1147
+ Description: 'Use when x then ... for one-line cases.'
1148
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
1149
+ Enabled: false
1150
+
1151
+ Style/WhileUntilDo:
1152
+ Description: 'Checks for redundant do after while or until.'
1153
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
1154
+ Enabled: false
1155
+
1156
+ Style/WhileUntilModifier:
1157
+ Description: >-
1158
+ Favor modifier while/until usage when you have a
1159
+ single-line body.
1160
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
1161
+ Enabled: false
1162
+
1163
+ Style/WordArray:
1164
+ Description: 'Use %w or %W for arrays of words.'
1165
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
1166
+ Enabled: true