punk 0.3.6 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +1 -1
  3. data/.rubocop.yml +1091 -93
  4. data/.standard.yml +2 -0
  5. data/Gemfile +60 -60
  6. data/Gemfile.lock +22 -17
  7. data/README.md +7 -3
  8. data/Rakefile +9 -7
  9. data/VERSION +1 -1
  10. data/app/migrations/001_lets_punk.rb +1 -1
  11. data/app/routes/hello.rb +1 -1
  12. data/bin/punk +5 -5
  13. data/lib/punk.rb +7 -7
  14. data/lib/punk/actions/sessions/create.rb +3 -3
  15. data/lib/punk/actions/sessions/verify.rb +2 -2
  16. data/lib/punk/commands/auth.rb +4 -4
  17. data/lib/punk/commands/generate.rb +5 -5
  18. data/lib/punk/commands/http.rb +4 -4
  19. data/lib/punk/commands/list.rb +10 -10
  20. data/lib/punk/core/app.rb +41 -41
  21. data/lib/punk/core/boot.rb +5 -5
  22. data/lib/punk/core/cli.rb +3 -3
  23. data/lib/punk/core/commander.rb +28 -28
  24. data/lib/punk/core/commands.rb +8 -8
  25. data/lib/punk/core/env.rb +27 -27
  26. data/lib/punk/core/exec.rb +8 -8
  27. data/lib/punk/core/interface.rb +19 -19
  28. data/lib/punk/core/load.rb +2 -2
  29. data/lib/punk/core/logger.rb +3 -3
  30. data/lib/punk/core/monkey.rb +1 -1
  31. data/lib/punk/core/pry.rb +2 -2
  32. data/lib/punk/core/settings.rb +4 -4
  33. data/lib/punk/core/version.rb +1 -1
  34. data/lib/punk/core/worker.rb +6 -6
  35. data/lib/punk/framework/all.rb +8 -8
  36. data/lib/punk/framework/model.rb +6 -5
  37. data/lib/punk/framework/plugins/all.rb +1 -1
  38. data/lib/punk/framework/plugins/validation.rb +8 -8
  39. data/lib/punk/framework/service.rb +5 -3
  40. data/lib/punk/framework/worker.rb +3 -3
  41. data/lib/punk/helpers/all.rb +5 -5
  42. data/lib/punk/helpers/loggable.rb +3 -3
  43. data/lib/punk/helpers/publishable.rb +1 -1
  44. data/lib/punk/helpers/renderable.rb +10 -10
  45. data/lib/punk/helpers/validatable.rb +7 -6
  46. data/lib/punk/migrations/001_punk.rb +12 -12
  47. data/lib/punk/models/group.rb +1 -1
  48. data/lib/punk/models/identity.rb +1 -1
  49. data/lib/punk/models/session.rb +7 -7
  50. data/lib/punk/models/tenant.rb +1 -1
  51. data/lib/punk/models/user.rb +2 -2
  52. data/lib/punk/plugins/all.rb +2 -2
  53. data/lib/punk/plugins/cors.rb +2 -2
  54. data/lib/punk/plugins/ssl.rb +1 -1
  55. data/lib/punk/routes/groups.rb +1 -1
  56. data/lib/punk/routes/plivo.rb +1 -1
  57. data/lib/punk/routes/sessions.rb +2 -2
  58. data/lib/punk/routes/swagger.rb +2 -2
  59. data/lib/punk/routes/tenants.rb +1 -1
  60. data/lib/punk/routes/users.rb +1 -1
  61. data/lib/punk/services/challenge_claim.rb +5 -5
  62. data/lib/punk/services/generate_swagger.rb +6 -6
  63. data/lib/punk/services/prove_claim.rb +1 -1
  64. data/lib/punk/startup/cache.rb +3 -3
  65. data/lib/punk/startup/database.rb +4 -4
  66. data/lib/punk/startup/environment.rb +6 -6
  67. data/lib/punk/startup/logger.rb +2 -2
  68. data/lib/punk/startup/task.rb +5 -5
  69. data/lib/punk/views/fail.rb +2 -2
  70. data/lib/punk/views/groups/list.rb +2 -2
  71. data/lib/punk/views/info.rb +2 -2
  72. data/lib/punk/views/plivo_store.rb +2 -2
  73. data/lib/punk/views/sessions/list.rb +2 -2
  74. data/lib/punk/views/sessions/pending.rb +2 -2
  75. data/lib/punk/views/tenants/list.rb +2 -2
  76. data/lib/punk/views/users/list.rb +2 -2
  77. data/lib/punk/views/users/show.rb +2 -2
  78. data/lib/punk/workers/geocode_session_worker.rb +3 -3
  79. data/lib/punk/workers/identify_session_worker.rb +1 -1
  80. data/lib/punk/workers/send_email_worker.rb +3 -3
  81. data/lib/punk/workers/send_sms_worker.rb +3 -3
  82. data/punk.gemspec +8 -4
  83. data/spec/actions/groups/punk/list_groups_action_spec.rb +9 -9
  84. data/spec/actions/sessions/punk/clear_session_action_spec.rb +11 -11
  85. data/spec/actions/sessions/punk/create_session_action_spec.rb +9 -9
  86. data/spec/actions/sessions/punk/list_sessions_action_spec.rb +8 -8
  87. data/spec/actions/sessions/punk/verify_session_action_spec.rb +24 -24
  88. data/spec/actions/tenants/punk/list_tenants_action_spec.rb +6 -6
  89. data/spec/actions/users/punk/list_group_users_action_spec.rb +6 -6
  90. data/spec/actions/users/punk/list_tenant_users_action_spec.rb +6 -6
  91. data/spec/factories/group.rb +1 -1
  92. data/spec/factories/group_user_metadata.rb +1 -1
  93. data/spec/factories/identity.rb +4 -4
  94. data/spec/factories/session.rb +1 -1
  95. data/spec/factories/tenant.rb +1 -1
  96. data/spec/factories/tenant_user_metadata.rb +1 -1
  97. data/spec/factories/user.rb +1 -1
  98. data/spec/lib/commands/generate_spec.rb +2 -2
  99. data/spec/lib/commands/list_spec.rb +2 -2
  100. data/spec/lib/commands/swagger_spec.rb +2 -2
  101. data/spec/lib/engine/punk_env_spec.rb +4 -4
  102. data/spec/lib/engine/punk_exec_spec.rb +2 -2
  103. data/spec/lib/engine/punk_init_spec.rb +2 -2
  104. data/spec/lib/engine/punk_store_spec.rb +2 -2
  105. data/spec/models/punk/group_spec.rb +4 -4
  106. data/spec/models/punk/group_user_metadata_spec.rb +2 -2
  107. data/spec/models/punk/identity_spec.rb +17 -17
  108. data/spec/models/punk/session_spec.rb +4 -4
  109. data/spec/models/punk/tenant_spec.rb +3 -3
  110. data/spec/models/punk/tenant_user_metadata_spec.rb +2 -2
  111. data/spec/models/punk/user_spec.rb +9 -9
  112. data/spec/routes/groups/get_groups_spec.rb +4 -4
  113. data/spec/routes/plivo/get_plivo_spec.rb +1 -1
  114. data/spec/routes/sessions/delete_session_spec.rb +1 -1
  115. data/spec/routes/sessions/get_sessions_spec.rb +5 -5
  116. data/spec/routes/sessions/patch_session_spec.rb +1 -1
  117. data/spec/routes/sessions/post_session_spec.rb +1 -1
  118. data/spec/routes/swagger/get_swagger_spec.rb +1 -1
  119. data/spec/routes/tenants/get_tenants_spec.rb +5 -5
  120. data/spec/routes/users/get_users_spec.rb +6 -6
  121. data/spec/services/punk/challenge_claim_service_spec.rb +2 -2
  122. data/spec/services/punk/create_identities_service_spec.rb +1 -1
  123. data/spec/services/punk/generate_swagger_service_spec.rb +2 -2
  124. data/spec/services/punk/prove_claim_service_spec.rb +2 -2
  125. data/spec/services/punk/secret_service_spec.rb +2 -2
  126. data/spec/spec_helper.rb +27 -27
  127. data/spec/views/punk/plivo_store_spec.rb +2 -2
  128. data/spec/views/sessions/punk/list_sessions_view_spec.rb +2 -2
  129. data/spec/views/sessions/punk/pending_session_view_spec.rb +2 -2
  130. data/spec/views/tenants/punk/list_tenants_view_spec.rb +2 -2
  131. data/spec/views/users/punk/list_groups_view_spec.rb +2 -2
  132. data/spec/views/users/punk/list_users_view_spec.rb +2 -2
  133. data/spec/workers/punk/geocode_session_worker_spec.rb +2 -2
  134. data/spec/workers/punk/identify_session_worker_spec.rb +3 -3
  135. data/spec/workers/punk/send_email_worker_spec.rb +1 -1
  136. metadata +18 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d8049e22aae5913ef0d8578d4e45374f085935a370747a8c69d48ba70513297
4
- data.tar.gz: 1b2c5470268580b7c3d576847df83d36f9be3eaa6700e3e8cf956d50cea505c7
3
+ metadata.gz: ed51b8d7017e99001ea059a4fa280f5adb40b8dc1601216764a126255cc1dc9a
4
+ data.tar.gz: 31f74885547a3ac9f657657f63df143a2daa016e7e451082b1a057bf13a38cda
5
5
  SHA512:
6
- metadata.gz: ad86fc9088e2afcebb817778feb91ede7c828ba12b480c0c6ab8923fced89ac3b3241a4d8ee96b9d146f7cd66f290461988f3e5db1a6485d0c9e380e5344d58f
7
- data.tar.gz: f520484134d4ece76c9011a4ed8383a09d1d4cfc9c1b82de4b5a2a66d7e0ebdbae665d8e9677d084616f414025ec8562319049a4cde3e0634991c38dcda01afe
6
+ metadata.gz: a2520f5015e52558aab8712bc5c9e3c18a27b7556e115b18943bb30e6997fb5f3dc17b48b1148d3ea07c63f00b9e66a23cdde7afd4ba91f56b0b1a556080b108
7
+ data.tar.gz: 535853ffdc048361a15ce37c78750c73d61e8b0148dd66c356e61d3dfbd33be86b2e123a085d027e3bff2cc32c0ff86cc275cbf3f2dbf46cde07c7f43bc18c9a
@@ -34,7 +34,7 @@ jobs:
34
34
  - name: Set up Ruby
35
35
  uses: ruby/setup-ruby@v1
36
36
  with:
37
- ruby-version: 2.5.8
37
+ ruby-version: 2.6.6
38
38
  bundler-cache: true
39
39
  - name: Lint files
40
40
  run: bundle exec rubocop
data/.rubocop.yml CHANGED
@@ -1,11 +1,12 @@
1
1
  require:
2
2
  - rubocop-rails
3
3
  - rubocop-rspec
4
+ - rubocop-sequel
5
+ - rubocop-performance
4
6
 
5
7
  AllCops:
6
- NewCops: enable
7
- TargetRubyVersion: 2.5
8
- DisplayCopNames: true
8
+ TargetRubyVersion: 2.6
9
+ DisabledByDefault: true
9
10
  Exclude:
10
11
  - "punk.gemspec"
11
12
  - ".bundle/**/*"
@@ -20,224 +21,1221 @@ RSpec/FilePath:
20
21
  Exclude:
21
22
  - spec/routes/**/*
22
23
 
23
- Layout/EmptyLineAfterGuardClause:
24
+ RSpec/EmptyExampleGroup:
25
+ Enabled: false
26
+
27
+ RSpec/MultipleExpectations:
28
+ Max: 2
29
+
30
+ Rails/ActiveRecordCallbacksOrder:
31
+ Enabled: true
32
+
33
+ Rails/FindById:
34
+ Enabled: true
35
+
36
+ Rails/Inquiry:
37
+ Enabled: true
38
+
39
+ Rails/MailerName:
40
+ Enabled: true
41
+
42
+ Rails/MatchRoute:
43
+ Enabled: true
44
+
45
+ Rails/NegateInclude:
46
+ Enabled: true
47
+
48
+ Rails/Pluck:
49
+ Enabled: true
50
+
51
+ Rails/PluckInWhere:
52
+ Enabled: true
53
+
54
+ Rails/RenderInline:
55
+ Enabled: true
56
+
57
+ Rails/RenderPlainText:
58
+ Enabled: true
59
+
60
+ Rails/ShortI18n:
61
+ Enabled: true
62
+
63
+ Rails/SkipsModelValidations:
24
64
  Enabled: false
25
65
 
26
- Layout/EmptyLinesAroundAttributeAccessor:
66
+ Rails/WhereExists:
67
+ Enabled: true
68
+
69
+ Bundler/DuplicatedGem:
70
+ Enabled: true
71
+ Include:
72
+ - '**/*.gemfile'
73
+ - '**/Gemfile'
74
+ - '**/gems.rb'
75
+
76
+ Bundler/InsecureProtocolSource:
77
+ Enabled: true
78
+ Include:
79
+ - '**/*.gemfile'
80
+ - '**/Gemfile'
81
+ - '**/gems.rb'
82
+
83
+ Gemspec/DuplicatedAssignment:
84
+ Enabled: true
85
+ Include:
86
+ - '**/*.gemspec'
87
+
88
+ Layout/AccessModifierIndentation:
89
+ Enabled: true
90
+ EnforcedStyle: indent
91
+ IndentationWidth: ~
92
+
93
+ Layout/ArgumentAlignment:
94
+ Enabled: true
95
+ EnforcedStyle: with_fixed_indentation
96
+
97
+ Layout/ArrayAlignment:
98
+ Enabled: true
99
+ EnforcedStyle: with_fixed_indentation
100
+
101
+ Layout/AssignmentIndentation:
102
+ Enabled: true
103
+ IndentationWidth: ~
104
+
105
+ Layout/BeginEndAlignment:
106
+ Enabled: true
107
+ EnforcedStyleAlignWith: start_of_line
108
+ AutoCorrect: true
109
+ Severity: warning
110
+
111
+ Layout/BlockAlignment:
112
+ Enabled: true
113
+ EnforcedStyleAlignWith: either
114
+
115
+ Layout/BlockEndNewline:
116
+ Enabled: true
117
+
118
+ Layout/CaseIndentation:
119
+ # Disabled because IndentOneStep can't be configured for one-liner cases. See:
120
+ # https://github.com/rubocop-hq/rubocop/issues/6447
121
+ Enabled: false
122
+
123
+ Layout/ClosingHeredocIndentation:
124
+ Enabled: true
125
+
126
+ Layout/ClosingParenthesisIndentation:
127
+ Enabled: true
128
+
129
+ Layout/CommentIndentation:
130
+ Enabled: true
131
+
132
+ Layout/ConditionPosition:
133
+ Enabled: true
134
+
135
+ Layout/DefEndAlignment:
136
+ Enabled: true
137
+ EnforcedStyleAlignWith: start_of_line
138
+ AutoCorrect: true
139
+ Severity: warning
140
+
141
+ Layout/DotPosition:
142
+ Enabled: true
143
+ EnforcedStyle: leading
144
+
145
+ Layout/ElseAlignment:
146
+ Enabled: true
147
+
148
+ Layout/EmptyComment:
149
+ Enabled: true
150
+ AllowBorderComment: true
151
+ AllowMarginComment: true
152
+
153
+ Layout/EmptyLineAfterMagicComment:
154
+ Enabled: true
155
+
156
+ Layout/EmptyLineBetweenDefs:
157
+ Enabled: true
158
+ AllowAdjacentOneLineDefs: false
159
+ NumberOfEmptyLines: 1
160
+
161
+ Layout/EmptyLines:
162
+ Enabled: true
163
+
164
+ Layout/EmptyLinesAroundAccessModifier:
165
+ Enabled: true
166
+
167
+ Layout/EmptyLinesAroundArguments:
168
+ Enabled: true
169
+
170
+ Layout/EmptyLinesAroundBeginBody:
171
+ Enabled: true
172
+
173
+ Layout/EmptyLinesAroundBlockBody:
174
+ Enabled: true
175
+ EnforcedStyle: no_empty_lines
176
+
177
+ Layout/EmptyLinesAroundClassBody:
178
+ Enabled: true
179
+ EnforcedStyle: no_empty_lines
180
+
181
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
182
+ Enabled: true
183
+
184
+ Layout/EmptyLinesAroundMethodBody:
185
+ Enabled: true
186
+
187
+ Layout/EmptyLinesAroundModuleBody:
188
+ Enabled: true
189
+ EnforcedStyle: no_empty_lines
190
+
191
+ Layout/EndAlignment:
192
+ Enabled: true
193
+ AutoCorrect: true
194
+ EnforcedStyleAlignWith: variable
195
+ Severity: warning
196
+
197
+ Layout/EndOfLine:
198
+ Enabled: true
199
+ EnforcedStyle: native
200
+
201
+ Layout/ExtraSpacing:
202
+ Enabled: true
203
+ AllowForAlignment: false
204
+ AllowBeforeTrailingComments: false
205
+ ForceEqualSignAlignment: false
206
+
207
+ Layout/FirstArgumentIndentation:
208
+ Enabled: true
209
+ EnforcedStyle: consistent
210
+ IndentationWidth: ~
211
+
212
+ Layout/FirstArrayElementIndentation:
213
+ Enabled: true
214
+ EnforcedStyle: consistent
215
+ IndentationWidth: ~
216
+
217
+ Layout/FirstHashElementIndentation:
218
+ Enabled: true
219
+ EnforcedStyle: consistent
220
+ IndentationWidth: ~
221
+
222
+ Layout/HashAlignment:
223
+ Enabled: true
224
+ EnforcedHashRocketStyle: key
225
+ EnforcedColonStyle: key
226
+ EnforcedLastArgumentHashStyle: always_inspect
227
+
228
+ Layout/HeredocIndentation:
229
+ Enabled: true
230
+
231
+ Layout/IndentationConsistency:
232
+ Enabled: true
233
+ EnforcedStyle: normal
234
+
235
+ Layout/IndentationStyle:
236
+ Enabled: true
237
+ IndentationWidth: ~
238
+
239
+ Layout/IndentationWidth:
240
+ Enabled: true
241
+ Width: 2
242
+ IgnoredPatterns: []
243
+
244
+ Layout/InitialIndentation:
245
+ Enabled: true
246
+
247
+ Layout/LeadingCommentSpace:
248
+ Enabled: true
249
+
250
+ Layout/LeadingEmptyLines:
251
+ Enabled: true
252
+
253
+ Layout/MultilineArrayBraceLayout:
254
+ Enabled: true
255
+ EnforcedStyle: symmetrical
256
+
257
+ Layout/MultilineBlockLayout:
258
+ Enabled: true
259
+
260
+ Layout/MultilineHashBraceLayout:
261
+ Enabled: true
262
+ EnforcedStyle: symmetrical
263
+
264
+ Layout/MultilineMethodCallBraceLayout:
265
+ Enabled: true
266
+ EnforcedStyle: symmetrical
267
+
268
+ Layout/MultilineMethodCallIndentation:
269
+ Enabled: true
270
+ EnforcedStyle: indented
271
+ IndentationWidth: ~
272
+
273
+ Layout/MultilineMethodDefinitionBraceLayout:
274
+ Enabled: true
275
+ EnforcedStyle: symmetrical
276
+
277
+ Layout/MultilineOperationIndentation:
278
+ Enabled: true
279
+ EnforcedStyle: indented
280
+ IndentationWidth: ~
281
+
282
+ Layout/ParameterAlignment:
283
+ Enabled: true
284
+ EnforcedStyle: with_fixed_indentation
285
+ IndentationWidth: ~
286
+
287
+ Layout/RescueEnsureAlignment:
288
+ Enabled: true
289
+
290
+ Layout/SpaceAfterColon:
291
+ Enabled: true
292
+
293
+ Layout/SpaceAfterComma:
294
+ Enabled: true
295
+
296
+ Layout/SpaceAfterMethodName:
297
+ Enabled: true
298
+
299
+ Layout/SpaceAfterNot:
300
+ Enabled: true
301
+
302
+ Layout/SpaceAfterSemicolon:
303
+ Enabled: true
304
+
305
+ Layout/SpaceAroundBlockParameters:
306
+ Enabled: true
307
+ EnforcedStyleInsidePipes: no_space
308
+
309
+ Layout/SpaceAroundEqualsInParameterDefault:
310
+ Enabled: true
311
+ EnforcedStyle: space
312
+
313
+ Layout/SpaceAroundKeyword:
314
+ Enabled: true
315
+
316
+ Layout/SpaceAroundMethodCallOperator:
317
+ Enabled: true
318
+
319
+ Layout/SpaceAroundOperators:
320
+ Enabled: true
321
+ AllowForAlignment: true
322
+
323
+ Layout/SpaceBeforeBlockBraces:
324
+ Enabled: true
325
+ EnforcedStyle: space
326
+ EnforcedStyleForEmptyBraces: space
327
+
328
+ Layout/SpaceBeforeComma:
329
+ Enabled: true
330
+
331
+ Layout/SpaceBeforeComment:
332
+ Enabled: true
333
+
334
+ Layout/SpaceBeforeFirstArg:
335
+ Enabled: true
336
+ AllowForAlignment: true
337
+
338
+ Layout/SpaceBeforeSemicolon:
339
+ Enabled: true
340
+
341
+ Layout/SpaceInLambdaLiteral:
342
+ Enabled: true
343
+ EnforcedStyle: require_no_space
344
+
345
+ Layout/SpaceInsideArrayLiteralBrackets:
346
+ Enabled: true
347
+ EnforcedStyle: no_space
348
+ EnforcedStyleForEmptyBrackets: no_space
349
+
350
+ Layout/SpaceInsideArrayPercentLiteral:
351
+ Enabled: true
352
+
353
+ Layout/SpaceInsideBlockBraces:
354
+ Enabled: true
355
+ EnforcedStyle: space
356
+ EnforcedStyleForEmptyBraces: no_space
357
+ SpaceBeforeBlockParameters: true
358
+
359
+ Layout/SpaceInsideHashLiteralBraces:
360
+ Enabled: true
361
+ EnforcedStyle: no_space
362
+ EnforcedStyleForEmptyBraces: no_space
363
+
364
+ Layout/SpaceInsideParens:
365
+ Enabled: true
366
+ EnforcedStyle: no_space
367
+
368
+ Layout/SpaceInsidePercentLiteralDelimiters:
369
+ Enabled: true
370
+
371
+ Layout/SpaceInsideRangeLiteral:
372
+ Enabled: true
373
+
374
+ Layout/SpaceInsideReferenceBrackets:
375
+ Enabled: true
376
+ EnforcedStyle: no_space
377
+ EnforcedStyleForEmptyBrackets: no_space
378
+
379
+ Layout/SpaceInsideStringInterpolation:
380
+ Enabled: true
381
+ EnforcedStyle: no_space
382
+
383
+ Layout/TrailingEmptyLines:
384
+ Enabled: true
385
+ EnforcedStyle: final_newline
386
+
387
+ Layout/TrailingWhitespace:
388
+ Enabled: true
389
+ AllowInHeredoc: true
390
+
391
+ Lint/AmbiguousAssignment:
392
+ Enabled: true
393
+
394
+ Lint/AmbiguousOperator:
395
+ Enabled: true
396
+
397
+ Lint/AmbiguousRegexpLiteral:
398
+ Enabled: true
399
+
400
+ Lint/AssignmentInCondition:
401
+ Enabled: true
402
+ AllowSafeAssignment: true
403
+
404
+ Lint/BigDecimalNew:
405
+ Enabled: true
406
+
407
+ Lint/BinaryOperatorWithIdenticalOperands:
408
+ Enabled: true
409
+
410
+ Lint/BooleanSymbol:
411
+ Enabled: true
412
+
413
+ Lint/CircularArgumentReference:
414
+ Enabled: true
415
+
416
+ Lint/ConstantDefinitionInBlock:
417
+ Enabled: true
418
+
419
+ Lint/Debugger:
420
+ Enabled: true
421
+
422
+ Lint/DeprecatedClassMethods:
423
+ Enabled: true
424
+
425
+ Lint/DeprecatedConstants:
426
+ Enabled: true
427
+
428
+ Lint/DeprecatedOpenSSLConstant:
429
+ Enabled: true
430
+
431
+ Lint/DuplicateCaseCondition:
432
+ Enabled: true
433
+
434
+ Lint/DuplicateElsifCondition:
435
+ Enabled: true
436
+
437
+ Lint/DuplicateHashKey:
438
+ Enabled: true
439
+
440
+ Lint/DuplicateMethods:
441
+ Enabled: true
442
+
443
+ Lint/DuplicateRegexpCharacterClassElement:
444
+ Enabled: true
445
+
446
+ Lint/DuplicateRequire:
447
+ Enabled: true
448
+
449
+ Lint/DuplicateRescueException:
450
+ Enabled: true
451
+
452
+ Lint/EachWithObjectArgument:
453
+ Enabled: true
454
+
455
+ Lint/ElseLayout:
456
+ Enabled: true
457
+
458
+ Lint/EmptyEnsure:
459
+ Enabled: true
460
+ AutoCorrect: true
461
+
462
+ Lint/EmptyExpression:
463
+ Enabled: true
464
+
465
+ Lint/EmptyInterpolation:
466
+ Enabled: true
467
+
468
+ Lint/EmptyWhen:
469
+ Enabled: true
470
+ AllowComments: true
471
+
472
+ Lint/EnsureReturn:
473
+ Enabled: true
474
+
475
+ Lint/ErbNewArguments:
476
+ Enabled: true
477
+
478
+ Lint/FlipFlop:
479
+ Enabled: true
480
+
481
+ Lint/FloatComparison:
482
+ Enabled: true
483
+
484
+ Lint/FloatOutOfRange:
485
+ Enabled: true
486
+
487
+ Lint/FormatParameterMismatch:
488
+ Enabled: true
489
+
490
+ Lint/IdentityComparison:
491
+ Enabled: true
492
+
493
+ Lint/ImplicitStringConcatenation:
494
+ Enabled: true
495
+
496
+ Lint/IneffectiveAccessModifier:
497
+ Enabled: true
498
+
499
+ Lint/InheritException:
500
+ Enabled: true
501
+ EnforcedStyle: runtime_error
502
+
503
+ Lint/InterpolationCheck:
504
+ Enabled: true
505
+
506
+ Lint/LiteralAsCondition:
507
+ Enabled: true
508
+
509
+ Lint/LiteralInInterpolation:
510
+ Enabled: true
511
+
512
+ Lint/Loop:
513
+ Enabled: true
514
+
515
+ Lint/MissingCopEnableDirective:
516
+ Enabled: true
517
+ MaximumRangeSize: .inf
518
+
519
+ Lint/MixedRegexpCaptureTypes:
520
+ Enabled: true
521
+
522
+ Lint/MultipleComparison:
523
+ Enabled: true
524
+
525
+ Lint/NestedMethodDefinition:
526
+ Enabled: true
527
+
528
+ Lint/NestedPercentLiteral:
529
+ Enabled: true
530
+
531
+ Lint/NextWithoutAccumulator:
532
+ Enabled: true
533
+
534
+ Lint/NonDeterministicRequireOrder:
535
+ Enabled: true
536
+
537
+ Lint/NonLocalExitFromIterator:
538
+ Enabled: true
539
+
540
+ Lint/OrderedMagicComments:
541
+ Enabled: true
542
+
543
+ Lint/OutOfRangeRegexpRef:
544
+ Enabled: true
545
+
546
+ Lint/ParenthesesAsGroupedExpression:
547
+ Enabled: true
548
+
549
+ Lint/PercentSymbolArray:
550
+ Enabled: true
551
+
552
+ Lint/RaiseException:
553
+ Enabled: true
554
+
555
+ Lint/RandOne:
556
+ Enabled: true
557
+
558
+ Lint/RedundantRequireStatement:
559
+ Enabled: true
560
+
561
+ Lint/RedundantSplatExpansion:
562
+ Enabled: true
563
+
564
+ Lint/RedundantStringCoercion:
565
+ Enabled: true
566
+
567
+ Lint/RedundantWithIndex:
568
+ Enabled: true
569
+
570
+ Lint/RedundantWithObject:
571
+ Enabled: true
572
+
573
+ Lint/RegexpAsCondition:
574
+ Enabled: true
575
+
576
+ Lint/RequireParentheses:
577
+ Enabled: true
578
+
579
+ Lint/RescueException:
580
+ Enabled: true
581
+
582
+ Lint/RescueType:
583
+ Enabled: true
584
+
585
+ Lint/ReturnInVoidContext:
586
+ Enabled: true
587
+
588
+ Lint/SafeNavigationChain:
589
+ Enabled: true
590
+ AllowedMethods:
591
+ - present?
592
+ - blank?
593
+ - presence
594
+ - try
595
+ - try!
596
+
597
+ Lint/SafeNavigationConsistency:
598
+ Enabled: true
599
+ AllowedMethods:
600
+ - present?
601
+ - blank?
602
+ - presence
603
+ - try
604
+ - try!
605
+
606
+ Lint/SafeNavigationWithEmpty:
607
+ Enabled: true
608
+
609
+ Lint/SelfAssignment:
610
+ Enabled: true
611
+
612
+ Lint/ShadowedArgument:
613
+ Enabled: true
614
+ IgnoreImplicitReferences: false
615
+
616
+ Lint/ShadowedException:
617
+ Enabled: true
618
+
619
+ Lint/Syntax:
620
+ Enabled: true
621
+
622
+ Lint/TopLevelReturnWithArgument:
623
+ Enabled: true
624
+
625
+ Lint/TrailingCommaInAttributeDeclaration:
626
+ Enabled: true
627
+
628
+ Lint/UnderscorePrefixedVariableName:
629
+ Enabled: true
630
+
631
+ Lint/UnifiedInteger:
632
+ Enabled: true
633
+
634
+ Lint/UnreachableCode:
635
+ Enabled: true
636
+
637
+ Lint/UriEscapeUnescape:
638
+ Enabled: true
639
+
640
+ Lint/UriRegexp:
27
641
  Enabled: true
28
642
 
29
- Layout/ExtraSpacing:
30
- AllowForAlignment: false
643
+ Lint/UselessAssignment:
644
+ Enabled: true
31
645
 
32
- Layout/FirstHashElementIndentation:
33
- EnforcedStyle: consistent
646
+ Lint/UselessElseWithoutRescue:
647
+ Enabled: true
34
648
 
35
- Layout/LineLength:
36
- Enabled: false
649
+ Lint/UselessSetterCall:
650
+ Enabled: true
37
651
 
38
- Layout/SpaceAroundEqualsInParameterDefault:
39
- EnforcedStyle: no_space
652
+ Lint/UselessTimes:
653
+ Enabled: true
40
654
 
41
- Layout/SpaceAroundMethodCallOperator:
655
+ Lint/Void:
656
+ Enabled: true
657
+ CheckForMethodsWithNoSideEffects: false
658
+
659
+ Migration/DepartmentName:
660
+ Enabled: true
661
+
662
+ Naming/BinaryOperatorParameterName:
663
+ Enabled: true
664
+
665
+ Naming/BlockParameterName:
666
+ Enabled: true
667
+ MinNameLength: 1
668
+ AllowNamesEndingInNumbers: true
669
+ AllowedNames: []
670
+ ForbiddenNames: []
671
+
672
+ Naming/ClassAndModuleCamelCase:
673
+ Enabled: true
674
+
675
+ Naming/ConstantName:
676
+ Enabled: true
677
+
678
+ Naming/HeredocDelimiterCase:
679
+ Enabled: true
680
+ EnforcedStyle: uppercase
681
+
682
+ Naming/VariableName:
683
+ Enabled: true
684
+ EnforcedStyle: snake_case
685
+
686
+ Performance/BigDecimalWithNumericArgument:
687
+ Enabled: true
688
+
689
+ Performance/BindCall:
690
+ Enabled: true
691
+
692
+ Performance/BlockGivenWithExplicitBlock:
693
+ Enabled: true
694
+
695
+ Performance/Caller:
42
696
  Enabled: true
43
697
 
44
- Layout/SpaceBeforeBrackets:
698
+ Performance/CollectionLiteralInLoop:
45
699
  Enabled: false
46
700
 
47
- Lint/BinaryOperatorWithIdenticalOperands:
701
+ Performance/CompareWithBlock:
48
702
  Enabled: true
49
703
 
50
- Lint/DeprecatedOpenSSLConstant:
704
+ Performance/ConstantRegexp:
51
705
  Enabled: true
52
706
 
53
- Lint/DuplicateElsifCondition:
707
+ Performance/Count:
54
708
  Enabled: true
55
709
 
56
- Lint/DuplicateRescueException:
710
+ Performance/DeletePrefix:
57
711
  Enabled: true
58
712
 
59
- Lint/EmptyConditionalBody:
713
+ Performance/DeleteSuffix:
60
714
  Enabled: true
61
715
 
62
- Lint/FloatComparison:
716
+ Performance/Detect:
63
717
  Enabled: true
64
718
 
65
- Lint/MissingSuper:
719
+ Performance/DoubleStartEndWith:
66
720
  Enabled: true
721
+ IncludeActiveSupportAliases: false
67
722
 
68
- Lint/MixedRegexpCaptureTypes:
723
+ Performance/EndWith:
69
724
  Enabled: true
70
725
 
71
- Lint/OutOfRangeRegexpRef:
726
+ Performance/FixedSize:
72
727
  Enabled: true
73
728
 
74
- Lint/RaiseException:
729
+ Performance/FlatMap:
75
730
  Enabled: true
731
+ EnabledForFlattenWithoutParams: false
76
732
 
77
- Lint/SelfAssignment:
733
+ Performance/InefficientHashSearch:
78
734
  Enabled: true
735
+ Safe: false
79
736
 
80
- Lint/StructNewOverride:
737
+ Performance/RangeInclude:
81
738
  Enabled: true
739
+ Safe: false
82
740
 
83
- Lint/TopLevelReturnWithArgument:
741
+ Performance/RedundantMatch:
84
742
  Enabled: true
85
743
 
86
- Lint/UnreachableLoop:
744
+ Performance/RedundantMerge:
87
745
  Enabled: true
746
+ MaxKeyValuePairs: 2
88
747
 
89
- Metrics/ParameterLists:
90
- Enabled: false
748
+ Performance/RedundantSortBlock:
749
+ Enabled: true
91
750
 
92
- Metrics/BlockLength:
93
- Enabled: false
751
+ Performance/RedundantStringChars:
752
+ Enabled: true
94
753
 
95
- Metrics/MethodLength:
96
- Enabled: false
754
+ Performance/RegexpMatch:
755
+ Enabled: true
97
756
 
98
- Metrics/ClassLength:
99
- Enabled: false
757
+ Performance/ReverseEach:
758
+ Enabled: true
100
759
 
101
- Metrics/ModuleLength:
102
- Enabled: false
760
+ Performance/ReverseFirst:
761
+ Enabled: true
103
762
 
104
- Metrics/AbcSize:
105
- Enabled: false
763
+ Performance/Size:
764
+ Enabled: true
106
765
 
107
- Metrics/CyclomaticComplexity:
108
- Enabled: false
766
+ Performance/SortReverse:
767
+ Enabled: true
109
768
 
110
- Metrics/PerceivedComplexity:
111
- Enabled: false
769
+ Performance/Squeeze:
770
+ Enabled: true
112
771
 
113
- Naming/MethodParameterName:
114
- Enabled: false
772
+ Performance/StartWith:
773
+ Enabled: true
115
774
 
116
- RSpec/EmptyExampleGroup:
117
- Enabled: false
775
+ Performance/StringReplacement:
776
+ Enabled: true
118
777
 
119
- RSpec/MultipleExpectations:
120
- Max: 2
778
+ Performance/UnfreezeString:
779
+ Enabled: true
121
780
 
122
- Style/AccessorGrouping:
781
+ Performance/UriDefaultParser:
123
782
  Enabled: true
124
783
 
125
- Rails/ActiveRecordCallbacksOrder:
784
+ Security/Eval:
126
785
  Enabled: true
127
786
 
128
- Style/ArrayCoercion:
787
+ Security/JSONLoad:
129
788
  Enabled: true
789
+ AutoCorrect: false
790
+ SafeAutoCorrect: false
130
791
 
131
- Style/AsciiComments:
132
- Enabled: false
792
+ Security/Open:
793
+ Enabled: true
794
+ Safe: false
133
795
 
134
- Style/BisectedAttrAccessor:
796
+ Security/YAMLLoad:
135
797
  Enabled: true
798
+ SafeAutoCorrect: false
136
799
 
137
- Style/CaseLikeIf:
800
+ Style/BlockDelimiters:
138
801
  Enabled: true
139
802
 
140
- Style/Documentation:
141
- Enabled: false
803
+ Style/Alias:
804
+ Enabled: true
805
+ EnforcedStyle: prefer_alias_method
142
806
 
143
- Style/ExplicitBlockArgument:
144
- Enabled: false
807
+ Style/AndOr:
808
+ Enabled: true
809
+ EnforcedStyle: always
810
+
811
+ Style/ArgumentsForwarding:
812
+ Enabled: true
813
+ AllowOnlyRestArgument: true
814
+
815
+ Style/ArrayJoin:
816
+ Enabled: true
817
+
818
+ Style/Attr:
819
+ Enabled: true
820
+
821
+ Style/BarePercentLiterals:
822
+ Enabled: true
823
+ EnforcedStyle: bare_percent
824
+
825
+ Style/BeginBlock:
826
+ Enabled: true
827
+
828
+ Style/BlockComments:
829
+ Enabled: true
830
+
831
+ Style/CharacterLiteral:
832
+ Enabled: true
833
+
834
+ Style/ClassCheck:
835
+ Enabled: true
836
+ EnforcedStyle: is_a?
837
+
838
+ Style/ClassEqualityComparison:
839
+ Enabled: true
840
+
841
+ Style/ClassMethods:
842
+ Enabled: true
843
+
844
+ Style/ColonMethodCall:
845
+ Enabled: true
846
+
847
+ Style/ColonMethodDefinition:
848
+ Enabled: true
849
+
850
+ Style/CommandLiteral:
851
+ Enabled: true
852
+ EnforcedStyle: mixed
853
+ AllowInnerBackticks: false
854
+
855
+ Style/CommentedKeyword:
856
+ Enabled: true
857
+
858
+ Style/ConditionalAssignment:
859
+ Enabled: true
860
+ EnforcedStyle: assign_to_condition
861
+ SingleLineConditionsOnly: true
862
+ IncludeTernaryExpressions: true
863
+
864
+ Style/DefWithParentheses:
865
+ Enabled: true
866
+
867
+ Style/Dir:
868
+ Enabled: true
869
+
870
+ Style/EachForSimpleLoop:
871
+ Enabled: true
872
+
873
+ Style/EachWithObject:
874
+ Enabled: true
875
+
876
+ Style/EmptyBlockParameter:
877
+ Enabled: true
878
+
879
+ Style/EmptyCaseCondition:
880
+ Enabled: true
881
+
882
+ Style/EmptyElse:
883
+ Enabled: true
884
+ EnforcedStyle: both
885
+
886
+ Style/EmptyLambdaParameter:
887
+ Enabled: true
888
+
889
+ Style/EmptyLiteral:
890
+ Enabled: true
891
+
892
+ Style/EmptyMethod:
893
+ Enabled: true
894
+ EnforcedStyle: expanded
895
+
896
+ Style/Encoding:
897
+ Enabled: true
145
898
 
146
- Style/ExponentialNotation:
899
+ Style/EndBlock:
147
900
  Enabled: true
901
+ AutoCorrect: true
902
+
903
+ Style/EvalWithLocation:
904
+ Enabled: true
905
+
906
+ Style/For:
907
+ Enabled: true
908
+ EnforcedStyle: each
148
909
 
149
910
  Style/GlobalStdStream:
150
911
  Enabled: true
151
912
 
152
- Style/HashAsLastArrayItem:
913
+ Style/GlobalVars:
153
914
  Enabled: true
915
+ AllowedVariables: []
154
916
 
155
- Style/HashEachMethods:
917
+ Style/HashExcept:
156
918
  Enabled: true
157
919
 
158
- Style/HashLikeCase:
920
+ Style/HashSyntax:
159
921
  Enabled: true
922
+ EnforcedStyle: ruby19_no_mixed_keys
160
923
 
161
- Style/HashTransformKeys:
924
+ Style/IdenticalConditionalBranches:
162
925
  Enabled: true
163
926
 
164
- Style/HashTransformValues:
927
+ Style/IfInsideElse:
165
928
  Enabled: true
166
929
 
167
- Style/OptionalBooleanParameter:
930
+ Style/IfUnlessModifierOfIfUnless:
168
931
  Enabled: true
169
932
 
170
- Style/ParallelAssignment:
171
- Enabled: false
933
+ Style/IfWithSemicolon:
934
+ Enabled: true
935
+
936
+ Style/InfiniteLoop:
937
+ Enabled: true
938
+
939
+ Style/KeywordParametersOrder:
940
+ Enabled: true
941
+
942
+ Style/LambdaCall:
943
+ Enabled: true
944
+ EnforcedStyle: call
945
+
946
+ Style/LineEndConcatenation:
947
+ Enabled: true
948
+ SafeAutoCorrect: false
949
+
950
+ Style/MethodCallWithoutArgsParentheses:
951
+ Enabled: true
952
+ IgnoredMethods: []
953
+
954
+ Style/MissingRespondToMissing:
955
+ Enabled: true
956
+
957
+ Style/MixinGrouping:
958
+ Enabled: true
959
+ EnforcedStyle: separated
960
+
961
+ Style/MixinUsage:
962
+ Enabled: true
963
+
964
+ Style/MultilineIfModifier:
965
+ Enabled: true
966
+
967
+ Style/MultilineIfThen:
968
+ Enabled: true
969
+
970
+ Style/MultilineMemoization:
971
+ Enabled: true
972
+ EnforcedStyle: keyword
973
+
974
+ Style/MultilineWhenThen:
975
+ Enabled: true
976
+
977
+ Style/NegatedIf:
978
+ Enabled: true
979
+ EnforcedStyle: postfix
980
+
981
+ Style/NegatedWhile:
982
+ Enabled: true
983
+
984
+ Style/NestedModifier:
985
+ Enabled: true
986
+
987
+ Style/NestedParenthesizedCalls:
988
+ Enabled: true
989
+ AllowedMethods:
990
+ - be
991
+ - be_a
992
+ - be_an
993
+ - be_between
994
+ - be_falsey
995
+ - be_kind_of
996
+ - be_instance_of
997
+ - be_truthy
998
+ - be_within
999
+ - eq
1000
+ - eql
1001
+ - end_with
1002
+ - include
1003
+ - match
1004
+ - raise_error
1005
+ - respond_to
1006
+ - start_with
1007
+
1008
+ Style/NestedTernaryOperator:
1009
+ Enabled: true
1010
+
1011
+ Style/NilComparison:
1012
+ Enabled: true
1013
+ EnforcedStyle: predicate
1014
+
1015
+ Style/NilLambda:
1016
+ Enabled: true
1017
+
1018
+ Style/NonNilCheck:
1019
+ Enabled: true
1020
+ IncludeSemanticChanges: false
1021
+
1022
+ Style/Not:
1023
+ Enabled: true
1024
+
1025
+ Style/NumericLiteralPrefix:
1026
+ Enabled: true
1027
+ EnforcedOctalStyle: zero_with_o
1028
+
1029
+ Style/OneLineConditional:
1030
+ Enabled: true
1031
+
1032
+ Style/OptionalArguments:
1033
+ Enabled: true
1034
+
1035
+ Style/OrAssignment:
1036
+ Enabled: true
1037
+
1038
+ Style/ParenthesesAroundCondition:
1039
+ Enabled: true
1040
+ AllowSafeAssignment: true
1041
+ AllowInMultilineConditions: false
1042
+
1043
+ Style/PercentLiteralDelimiters:
1044
+ Enabled: true
1045
+ PreferredDelimiters:
1046
+ default: ()
1047
+ '%i': '[]'
1048
+ '%I': '[]'
1049
+ '%r': '{}'
1050
+ '%w': '[]'
1051
+ '%W': '[]'
1052
+
1053
+ Style/Proc:
1054
+ Enabled: true
1055
+
1056
+ Style/RandomWithOffset:
1057
+ Enabled: true
172
1058
 
173
1059
  Style/RedundantAssignment:
174
1060
  Enabled: true
175
1061
 
1062
+ Style/RedundantBegin:
1063
+ Enabled: true
1064
+
1065
+ Style/RedundantCondition:
1066
+ Enabled: true
1067
+
1068
+ Style/RedundantConditional:
1069
+ Enabled: true
1070
+
1071
+ Style/RedundantException:
1072
+ Enabled: true
1073
+
176
1074
  Style/RedundantFetchBlock:
177
1075
  Enabled: true
178
1076
 
179
1077
  Style/RedundantFileExtensionInRequire:
180
1078
  Enabled: true
181
1079
 
1080
+ Style/RedundantFreeze:
1081
+ Enabled: true
1082
+
1083
+ Style/RedundantInterpolation:
1084
+ Enabled: true
1085
+
1086
+ Style/RedundantParentheses:
1087
+ Enabled: true
1088
+
1089
+ Style/RedundantPercentQ:
1090
+ Enabled: true
1091
+
182
1092
  Style/RedundantRegexpCharacterClass:
183
1093
  Enabled: true
184
1094
 
185
1095
  Style/RedundantRegexpEscape:
186
1096
  Enabled: true
187
1097
 
188
- Style/RegexpLiteral:
189
- Enabled: false
1098
+ Style/RedundantReturn:
1099
+ Enabled: true
1100
+ AllowMultipleReturnValues: false
1101
+
1102
+ Style/RedundantSelf:
1103
+ Enabled: true
1104
+
1105
+ Style/RedundantSort:
1106
+ Enabled: true
1107
+
1108
+ Style/RedundantSortBy:
1109
+ Enabled: true
1110
+
1111
+ Style/RescueModifier:
1112
+ Enabled: true
1113
+
1114
+ Style/RescueStandardError:
1115
+ Enabled: true
1116
+ EnforcedStyle: implicit
1117
+
1118
+ Style/SafeNavigation:
1119
+ Enabled: true
1120
+ ConvertCodeThatCanStartToReturnNil: false
1121
+ AllowedMethods:
1122
+ - present?
1123
+ - blank?
1124
+ - presence
1125
+ - try
1126
+ - try!
1127
+
1128
+ Style/Sample:
1129
+ Enabled: true
1130
+
1131
+ Style/SelfAssignment:
1132
+ Enabled: true
1133
+
1134
+ Style/Semicolon:
1135
+ Enabled: true
1136
+ AllowAsExpressionSeparator: false
190
1137
 
191
- Style/SingleArgumentDig:
1138
+ Style/SingleLineMethods:
192
1139
  Enabled: true
1140
+ AllowIfMethodIsEmpty: false
193
1141
 
194
1142
  Style/SlicingWithRange:
195
1143
  Enabled: true
196
1144
 
197
- Style/StringConcatenation:
1145
+ Style/StabbyLambdaParentheses:
1146
+ Enabled: true
1147
+ EnforcedStyle: require_parentheses
1148
+
1149
+ Style/StderrPuts:
198
1150
  Enabled: true
199
1151
 
200
1152
  Style/StringLiterals:
201
- Enabled: false
1153
+ Enabled: true
1154
+ EnforcedStyle: double_quotes
1155
+ ConsistentQuotesInMultiline: false
202
1156
 
203
- Style/SymbolArray:
204
- Enabled: false
1157
+ Style/StringLiteralsInInterpolation:
1158
+ Enabled: true
1159
+ EnforcedStyle: double_quotes
205
1160
 
206
- Style/WordArray:
207
- Enabled: false
1161
+ Style/Strip:
1162
+ Enabled: true
208
1163
 
209
- Rails/FindById:
1164
+ Style/SymbolLiteral:
210
1165
  Enabled: true
211
1166
 
212
- Rails/Inquiry:
1167
+ Style/TernaryParentheses:
213
1168
  Enabled: true
1169
+ EnforcedStyle: require_no_parentheses
1170
+ AllowSafeAssignment: true
214
1171
 
215
- Rails/MailerName:
1172
+ Style/TrailingBodyOnClass:
216
1173
  Enabled: true
217
1174
 
218
- Rails/MatchRoute:
1175
+ Style/TrailingBodyOnMethodDefinition:
219
1176
  Enabled: true
220
1177
 
221
- Rails/NegateInclude:
1178
+ Style/TrailingBodyOnModule:
222
1179
  Enabled: true
223
1180
 
224
- Rails/Pluck:
1181
+ Style/TrailingCommaInArguments:
225
1182
  Enabled: true
1183
+ EnforcedStyleForMultiline: no_comma
226
1184
 
227
- Rails/PluckInWhere:
1185
+ Style/TrailingCommaInArrayLiteral:
228
1186
  Enabled: true
1187
+ EnforcedStyleForMultiline: no_comma
229
1188
 
230
- Rails/RenderInline:
1189
+ Style/TrailingCommaInBlockArgs:
231
1190
  Enabled: true
232
1191
 
233
- Rails/RenderPlainText:
1192
+ Style/TrailingCommaInHashLiteral:
234
1193
  Enabled: true
1194
+ EnforcedStyleForMultiline: no_comma
235
1195
 
236
- Rails/ShortI18n:
1196
+ Style/TrailingMethodEndStatement:
237
1197
  Enabled: true
238
1198
 
239
- Rails/SkipsModelValidations:
240
- Enabled: false
1199
+ Style/TrivialAccessors:
1200
+ Enabled: true
1201
+ ExactNameMatch: true
1202
+ AllowPredicates: true
1203
+ AllowDSLWriters: false
1204
+ IgnoreClassMethods: false
1205
+ AllowedMethods:
1206
+ - to_ary
1207
+ - to_a
1208
+ - to_c
1209
+ - to_enum
1210
+ - to_h
1211
+ - to_hash
1212
+ - to_i
1213
+ - to_int
1214
+ - to_io
1215
+ - to_open
1216
+ - to_path
1217
+ - to_proc
1218
+ - to_r
1219
+ - to_regexp
1220
+ - to_str
1221
+ - to_s
1222
+ - to_sym
1223
+
1224
+ Style/UnlessElse:
1225
+ Enabled: true
241
1226
 
242
- Rails/WhereExists:
1227
+ Style/UnpackFirst:
1228
+ Enabled: true
1229
+
1230
+ Style/VariableInterpolation:
1231
+ Enabled: true
1232
+
1233
+ Style/WhenThen:
1234
+ Enabled: true
1235
+
1236
+ Style/WhileUntilDo:
1237
+ Enabled: true
1238
+
1239
+ Style/YodaCondition:
243
1240
  Enabled: true
1241
+ EnforcedStyle: forbid_for_all_comparison_operators