talkable-style 0.1.0 → 1.2021.1005
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile +4 -0
- data/Rakefile +2 -0
- data/default.yml +395 -57
- data/lib/talkable/style/version.rb +3 -1
- data/lib/talkable/style.rb +3 -1
- data/shared/.circleci/bin/pronto +19 -0
- data/shared/.pronto_spell.pws +675 -0
- data/shared/.pronto_spell.yml +11 -0
- data/talkable-style.gemspec +16 -23
- metadata +24 -35
data/default.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require:
|
2
2
|
- rubocop-performance
|
3
3
|
- rubocop-rails
|
4
|
+
- rubocop-rake
|
4
5
|
- rubocop-rspec
|
5
6
|
|
6
7
|
AllCops:
|
@@ -10,27 +11,26 @@ AllCops:
|
|
10
11
|
- tmp/**/*
|
11
12
|
DisplayCopNames: false
|
12
13
|
DisabledByDefault: true
|
13
|
-
TargetRubyVersion:
|
14
|
-
TargetRailsVersion:
|
14
|
+
TargetRubyVersion: 3.0
|
15
|
+
TargetRailsVersion: 6.1
|
16
|
+
RSpec:
|
17
|
+
Language:
|
18
|
+
Includes:
|
19
|
+
Examples:
|
20
|
+
- it_has_behavior
|
15
21
|
|
16
22
|
Bundler/DuplicatedGem:
|
17
23
|
Enabled: true
|
18
24
|
Bundler/InsecureProtocolSource:
|
19
25
|
Enabled: true
|
20
26
|
|
21
|
-
|
27
|
+
Layout/AccessModifierIndentation:
|
22
28
|
Enabled: true
|
23
|
-
|
29
|
+
Layout/ArrayAlignment:
|
24
30
|
Enabled: true
|
25
|
-
|
26
|
-
FactoryBot/AttributeDefinedStatically:
|
31
|
+
Layout/AssignmentIndentation:
|
27
32
|
Enabled: true
|
28
|
-
|
29
|
-
Enabled: true
|
30
|
-
|
31
|
-
Layout/AccessModifierIndentation:
|
32
|
-
Enabled: true
|
33
|
-
Layout/AlignArray:
|
33
|
+
Layout/BeginEndAlignment:
|
34
34
|
Enabled: true
|
35
35
|
Layout/BlockAlignment:
|
36
36
|
Enabled: true
|
@@ -68,24 +68,24 @@ Layout/EndOfLine:
|
|
68
68
|
Enabled: true
|
69
69
|
Layout/ExtraSpacing:
|
70
70
|
Enabled: true
|
71
|
-
Layout/
|
72
|
-
Enabled: true
|
73
|
-
Layout/IndentFirstArrayElement:
|
71
|
+
Layout/FirstArrayElementIndentation:
|
74
72
|
Enabled: true
|
75
73
|
EnforcedStyle: consistent
|
76
|
-
Layout/
|
74
|
+
Layout/FirstHashElementIndentation:
|
77
75
|
Enabled: true
|
78
76
|
EnforcedStyle: consistent
|
79
|
-
Layout/
|
77
|
+
Layout/HeredocIndentation:
|
80
78
|
Enabled: true
|
81
79
|
Layout/IndentationConsistency:
|
82
80
|
Enabled: true
|
83
|
-
Layout/
|
81
|
+
Layout/IndentationStyle:
|
84
82
|
Enabled: true
|
85
|
-
Layout/
|
83
|
+
Layout/InitialIndentation:
|
86
84
|
Enabled: true
|
87
85
|
Layout/LeadingCommentSpace:
|
88
86
|
Enabled: true
|
87
|
+
Layout/LeadingEmptyLines:
|
88
|
+
Enabled: true
|
89
89
|
Layout/MultilineAssignmentLayout:
|
90
90
|
Enabled: true
|
91
91
|
EnforcedStyle: same_line
|
@@ -120,8 +120,12 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
120
120
|
Enabled: true
|
121
121
|
Layout/SpaceAroundKeyword:
|
122
122
|
Enabled: true
|
123
|
+
Layout/SpaceAroundMethodCallOperator:
|
124
|
+
Enabled: true
|
123
125
|
Layout/SpaceAroundOperators:
|
124
126
|
Enabled: true
|
127
|
+
Layout/SpaceBeforeBrackets:
|
128
|
+
Enabled: true
|
125
129
|
Layout/SpaceBeforeComma:
|
126
130
|
Enabled: true
|
127
131
|
Layout/SpaceBeforeComment:
|
@@ -140,61 +144,99 @@ Layout/SpaceInsidePercentLiteralDelimiters:
|
|
140
144
|
Enabled: true
|
141
145
|
Layout/SpaceInsideRangeLiteral:
|
142
146
|
Enabled: true
|
143
|
-
Layout/
|
144
|
-
Enabled: true
|
145
|
-
Layout/TrailingBlankLines:
|
147
|
+
Layout/TrailingEmptyLines:
|
146
148
|
Enabled: true
|
147
149
|
Layout/TrailingWhitespace:
|
148
150
|
Enabled: true
|
149
151
|
|
152
|
+
Lint/AmbiguousAssignment:
|
153
|
+
Enabled: true
|
150
154
|
Lint/AmbiguousOperator:
|
151
155
|
Enabled: true
|
156
|
+
Lint/AmbiguousOperatorPrecedence:
|
157
|
+
Enabled: true
|
158
|
+
Lint/AmbiguousRange:
|
159
|
+
Enabled: true
|
152
160
|
Lint/AmbiguousRegexpLiteral:
|
153
161
|
Enabled: true
|
154
162
|
Lint/BigDecimalNew:
|
155
163
|
Enabled: true
|
164
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
165
|
+
Enabled: true
|
156
166
|
Lint/BooleanSymbol:
|
157
167
|
Enabled: true
|
158
168
|
Lint/CircularArgumentReference:
|
159
169
|
Enabled: true
|
170
|
+
Lint/ConstantDefinitionInBlock:
|
171
|
+
Enabled: true
|
160
172
|
Lint/Debugger:
|
161
173
|
Enabled: true
|
162
174
|
Lint/DeprecatedClassMethods:
|
163
175
|
Enabled: true
|
176
|
+
Lint/DeprecatedConstants:
|
177
|
+
Enabled: true
|
178
|
+
Lint/DeprecatedOpenSSLConstant:
|
179
|
+
Enabled: true
|
164
180
|
Lint/DisjunctiveAssignmentInConstructor:
|
165
181
|
Enabled: true
|
182
|
+
Lint/DuplicateBranch:
|
183
|
+
Enabled: true
|
166
184
|
Lint/DuplicateCaseCondition:
|
167
185
|
Enabled: true
|
168
|
-
Lint/
|
186
|
+
Lint/DuplicateElsifCondition:
|
187
|
+
Enabled: true
|
188
|
+
Lint/DuplicateHashKey:
|
169
189
|
Enabled: true
|
170
190
|
Lint/DuplicateMethods:
|
171
191
|
Enabled: true
|
192
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
193
|
+
Enabled: true
|
194
|
+
Lint/DuplicateRequire:
|
195
|
+
Enabled: true
|
196
|
+
Lint/DuplicateRescueException:
|
197
|
+
Enabled: true
|
172
198
|
Lint/EachWithObjectArgument:
|
173
199
|
Enabled: true
|
174
200
|
Lint/ElseLayout:
|
175
201
|
Enabled: true
|
202
|
+
Lint/EmptyBlock:
|
203
|
+
Enabled: true
|
204
|
+
Lint/EmptyClass:
|
205
|
+
Enabled: true
|
206
|
+
Lint/EmptyConditionalBody:
|
207
|
+
Enabled: true
|
176
208
|
Lint/EmptyEnsure:
|
177
209
|
Enabled: true
|
178
210
|
Lint/EmptyExpression:
|
179
211
|
Enabled: true
|
212
|
+
Lint/EmptyFile:
|
213
|
+
Enabled: true
|
214
|
+
Lint/EmptyInPattern:
|
215
|
+
Enabled: true
|
180
216
|
Lint/EmptyInterpolation:
|
181
217
|
Enabled: true
|
182
218
|
Lint/EmptyWhen:
|
183
219
|
Enabled: true
|
184
|
-
Lint/EndInMethod:
|
185
|
-
Enabled: true
|
186
220
|
Lint/EnsureReturn:
|
187
221
|
Enabled: true
|
188
222
|
Lint/FlipFlop:
|
189
223
|
Enabled: true
|
224
|
+
Lint/FloatComparison:
|
225
|
+
Enabled: true
|
190
226
|
Lint/FloatOutOfRange:
|
191
227
|
Enabled: true
|
192
228
|
Lint/FormatParameterMismatch:
|
193
229
|
Enabled: true
|
230
|
+
Lint/HashCompareByIdentity:
|
231
|
+
Enabled: true
|
194
232
|
Lint/HeredocMethodCallPosition:
|
195
233
|
Enabled: true
|
234
|
+
Lint/IdentityComparison:
|
235
|
+
Enabled: true
|
196
236
|
Lint/ImplicitStringConcatenation:
|
197
237
|
Enabled: true
|
238
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
239
|
+
Enabled: true
|
198
240
|
Lint/IneffectiveAccessModifier:
|
199
241
|
Enabled: true
|
200
242
|
Lint/InheritException:
|
@@ -208,22 +250,50 @@ Lint/Loop:
|
|
208
250
|
Enabled: true
|
209
251
|
Lint/MissingCopEnableDirective:
|
210
252
|
Enabled: true
|
211
|
-
Lint/
|
253
|
+
Lint/MissingSuper:
|
254
|
+
Enabled: true
|
255
|
+
Lint/MixedRegexpCaptureTypes:
|
256
|
+
Enabled: true
|
257
|
+
Lint/MultipleComparison:
|
212
258
|
Enabled: true
|
213
259
|
Lint/NestedMethodDefinition:
|
214
260
|
Enabled: true
|
215
261
|
Lint/NextWithoutAccumulator:
|
216
262
|
Enabled: true
|
263
|
+
Lint/NonDeterministicRequireOrder:
|
264
|
+
Enabled: true
|
217
265
|
Lint/NonLocalExitFromIterator:
|
218
266
|
Enabled: true
|
267
|
+
Lint/NumberedParameterAssignment:
|
268
|
+
Enabled: true
|
269
|
+
Lint/OrAssignmentToConstant:
|
270
|
+
Enabled: true
|
271
|
+
Lint/OutOfRangeRegexpRef:
|
272
|
+
Enabled: true
|
219
273
|
Lint/ParenthesesAsGroupedExpression:
|
220
274
|
Enabled: true
|
221
275
|
Lint/PercentStringArray:
|
222
276
|
Enabled: true
|
223
277
|
Lint/PercentSymbolArray:
|
224
278
|
Enabled: true
|
279
|
+
Lint/RaiseException:
|
280
|
+
Enabled: true
|
225
281
|
Lint/RandOne:
|
226
282
|
Enabled: true
|
283
|
+
Lint/RedundantCopDisableDirective:
|
284
|
+
Enabled: true
|
285
|
+
Lint/RedundantCopEnableDirective:
|
286
|
+
Enabled: true
|
287
|
+
Lint/RedundantDirGlobSort:
|
288
|
+
Enabled: true
|
289
|
+
Lint/RedundantRequireStatement:
|
290
|
+
Enabled: true
|
291
|
+
Lint/RedundantSafeNavigation:
|
292
|
+
Enabled: true
|
293
|
+
Lint/RedundantSplatExpansion:
|
294
|
+
Enabled: true
|
295
|
+
Lint/RedundantStringCoercion:
|
296
|
+
Enabled: true
|
227
297
|
Lint/RedundantWithIndex:
|
228
298
|
Enabled: true
|
229
299
|
Lint/RedundantWithObject:
|
@@ -232,6 +302,8 @@ Lint/RegexpAsCondition:
|
|
232
302
|
Enabled: true
|
233
303
|
Lint/RequireParentheses:
|
234
304
|
Enabled: true
|
305
|
+
Lint/RequireRelativeSelfPath:
|
306
|
+
Enabled: true
|
235
307
|
Lint/RescueException:
|
236
308
|
Enabled: true
|
237
309
|
Lint/RescueType:
|
@@ -240,11 +312,12 @@ Lint/ReturnInVoidContext:
|
|
240
312
|
Enabled: true
|
241
313
|
Lint/SafeNavigationChain:
|
242
314
|
Enabled: true
|
243
|
-
|
315
|
+
AllowedMethods:
|
244
316
|
- present?
|
245
317
|
- blank?
|
246
318
|
- presence
|
247
319
|
- try
|
320
|
+
- try!
|
248
321
|
- to_bool
|
249
322
|
- to_liquid
|
250
323
|
- in?
|
@@ -252,24 +325,36 @@ Lint/SafeNavigationWithEmpty:
|
|
252
325
|
Enabled: true
|
253
326
|
Lint/ScriptPermission:
|
254
327
|
Enabled: true
|
328
|
+
Lint/SelfAssignment:
|
329
|
+
Enabled: true
|
330
|
+
Lint/SendWithMixinArgument:
|
331
|
+
Enabled: true
|
255
332
|
Lint/ShadowedException:
|
256
333
|
Enabled: true
|
257
|
-
Lint/
|
334
|
+
Lint/StructNewOverride:
|
335
|
+
Enabled: true
|
336
|
+
Lint/SymbolConversion:
|
337
|
+
Enabled: true
|
338
|
+
Lint/ToEnumArguments:
|
258
339
|
Enabled: true
|
259
340
|
Lint/ToJSON:
|
260
341
|
Enabled: true
|
261
|
-
Lint/
|
342
|
+
Lint/TopLevelReturnWithArgument:
|
262
343
|
Enabled: true
|
263
|
-
Lint/
|
344
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
264
345
|
Enabled: true
|
265
|
-
Lint/
|
346
|
+
Lint/TripleQuotes:
|
266
347
|
Enabled: true
|
267
|
-
Lint/
|
348
|
+
Lint/UnexpectedBlockArity:
|
268
349
|
Enabled: true
|
269
|
-
Lint/
|
350
|
+
Lint/UnifiedInteger:
|
351
|
+
Enabled: true
|
352
|
+
Lint/UnmodifiedReduceAccumulator:
|
270
353
|
Enabled: true
|
271
354
|
Lint/UnreachableCode:
|
272
355
|
Enabled: true
|
356
|
+
Lint/UnreachableLoop:
|
357
|
+
Enabled: true
|
273
358
|
Lint/UnusedBlockArgument:
|
274
359
|
Enabled: true
|
275
360
|
Lint/UnusedMethodArgument:
|
@@ -282,12 +367,14 @@ Lint/UselessAccessModifier:
|
|
282
367
|
Enabled: true
|
283
368
|
Lint/UselessAssignment:
|
284
369
|
Enabled: true
|
285
|
-
Lint/UselessComparison:
|
286
|
-
Enabled: true
|
287
370
|
Lint/UselessElseWithoutRescue:
|
288
371
|
Enabled: true
|
372
|
+
Lint/UselessMethodDefinition:
|
373
|
+
Enabled: true
|
289
374
|
Lint/UselessSetterCall:
|
290
375
|
Enabled: true
|
376
|
+
Lint/UselessTimes:
|
377
|
+
Enabled: true
|
291
378
|
Lint/Void:
|
292
379
|
Enabled: true
|
293
380
|
|
@@ -302,6 +389,8 @@ Naming/ConstantName:
|
|
302
389
|
Enabled: true
|
303
390
|
Naming/FileName:
|
304
391
|
Enabled: true
|
392
|
+
Naming/InclusiveLanguage:
|
393
|
+
Enabled: true
|
305
394
|
Naming/MemoizedInstanceVariableName:
|
306
395
|
Enabled: true
|
307
396
|
Naming/MethodName:
|
@@ -310,23 +399,39 @@ Naming/PredicateName:
|
|
310
399
|
Enabled: true
|
311
400
|
NamePrefix:
|
312
401
|
- is_
|
313
|
-
|
402
|
+
ForbiddenPrefixes:
|
314
403
|
- is_
|
315
404
|
Naming/RescuedExceptionsVariableName:
|
316
405
|
Enabled: true
|
317
406
|
Naming/VariableName:
|
318
407
|
Enabled: true
|
319
408
|
|
409
|
+
Performance/AncestorsInclude:
|
410
|
+
Enabled: true
|
411
|
+
Performance/BigDecimalWithNumericArgument:
|
412
|
+
Enabled: true
|
413
|
+
Performance/BindCall:
|
414
|
+
Enabled: true
|
415
|
+
Performance/BlockGivenWithExplicitBlock:
|
416
|
+
Enabled: true
|
320
417
|
Performance/Caller:
|
321
418
|
Enabled: true
|
419
|
+
Performance/CaseWhenSplat:
|
420
|
+
Enabled: true
|
322
421
|
Performance/Casecmp:
|
323
422
|
Enabled: true
|
324
|
-
Performance/
|
423
|
+
Performance/CollectionLiteralInLoop:
|
325
424
|
Enabled: true
|
326
425
|
Performance/CompareWithBlock:
|
327
426
|
Enabled: true
|
427
|
+
Performance/ConstantRegexp:
|
428
|
+
Enabled: true
|
328
429
|
Performance/Count:
|
329
430
|
Enabled: true
|
431
|
+
Performance/DeletePrefix:
|
432
|
+
Enabled: true
|
433
|
+
Performance/DeleteSuffix:
|
434
|
+
Enabled: true
|
330
435
|
Performance/Detect:
|
331
436
|
Enabled: true
|
332
437
|
Performance/DoubleStartEndWith:
|
@@ -339,24 +444,46 @@ Performance/FlatMap:
|
|
339
444
|
Enabled: true
|
340
445
|
Performance/InefficientHashSearch:
|
341
446
|
Enabled: true
|
447
|
+
Performance/IoReadlines:
|
448
|
+
Enabled: true
|
449
|
+
Performance/MapCompact:
|
450
|
+
Enabled: true
|
342
451
|
Performance/RangeInclude:
|
343
452
|
Enabled: true
|
344
453
|
Performance/RedundantBlockCall:
|
345
454
|
Enabled: true
|
455
|
+
Performance/RedundantEqualityComparisonBlock:
|
456
|
+
Enabled: true
|
346
457
|
Performance/RedundantMatch:
|
347
458
|
Enabled: true
|
348
459
|
Performance/RedundantMerge:
|
349
460
|
Enabled: true
|
461
|
+
Performance/RedundantSortBlock:
|
462
|
+
Enabled: true
|
463
|
+
Performance/RedundantSplitRegexpArgument:
|
464
|
+
Enabled: true
|
465
|
+
Performance/RedundantStringChars:
|
466
|
+
Enabled: true
|
350
467
|
Performance/RegexpMatch:
|
351
468
|
Enabled: true
|
352
469
|
Performance/ReverseEach:
|
353
470
|
Enabled: true
|
471
|
+
Performance/ReverseFirst:
|
472
|
+
Enabled: true
|
354
473
|
Performance/Size:
|
355
474
|
Enabled: true
|
475
|
+
Performance/SortReverse:
|
476
|
+
Enabled: true
|
477
|
+
Performance/Squeeze:
|
478
|
+
Enabled: true
|
356
479
|
Performance/StartWith:
|
357
480
|
Enabled: true
|
481
|
+
Performance/StringInclude:
|
482
|
+
Enabled: true
|
358
483
|
Performance/StringReplacement:
|
359
484
|
Enabled: true
|
485
|
+
Performance/Sum:
|
486
|
+
Enabled: true
|
360
487
|
Performance/TimesMap:
|
361
488
|
Enabled: true
|
362
489
|
Performance/UnfreezeString:
|
@@ -364,20 +491,32 @@ Performance/UnfreezeString:
|
|
364
491
|
Performance/UriDefaultParser:
|
365
492
|
Enabled: true
|
366
493
|
|
367
|
-
Rails:
|
368
|
-
Enabled: true
|
369
494
|
Rails/ActionFilter:
|
370
495
|
Enabled: true
|
371
496
|
Rails/ActiveRecordAliases:
|
372
497
|
Enabled: true
|
498
|
+
Rails/ActiveRecordCallbacksOrder:
|
499
|
+
Enabled: true
|
373
500
|
Rails/ActiveRecordOverride:
|
374
501
|
Enabled: true
|
375
502
|
Rails/ActiveSupportAliases:
|
376
503
|
Enabled: true
|
504
|
+
Rails/AddColumnIndex:
|
505
|
+
Enabled: true
|
506
|
+
Rails/AfterCommitOverride:
|
507
|
+
Enabled: true
|
508
|
+
Rails/ApplicationController:
|
509
|
+
Enabled: true
|
377
510
|
Rails/ApplicationJob:
|
378
511
|
Enabled: true
|
512
|
+
Rails/ApplicationMailer:
|
513
|
+
Enabled: true
|
379
514
|
Rails/ApplicationRecord:
|
380
515
|
Enabled: true
|
516
|
+
Rails/ArelStar:
|
517
|
+
Enabled: true
|
518
|
+
Rails/AttributeDefaultBlockValue:
|
519
|
+
Enabled: true
|
381
520
|
Rails/BelongsTo:
|
382
521
|
Enabled: true
|
383
522
|
Rails/Blank:
|
@@ -395,14 +534,20 @@ Rails/DelegateAllowBlank:
|
|
395
534
|
Enabled: true
|
396
535
|
Rails/DynamicFindBy:
|
397
536
|
Enabled: true
|
537
|
+
Rails/EnumHash:
|
538
|
+
Enabled: true
|
398
539
|
Rails/EnumUniqueness:
|
399
540
|
Enabled: true
|
400
541
|
Rails/EnvironmentComparison:
|
401
542
|
Enabled: true
|
402
543
|
Rails/Exit:
|
403
544
|
Enabled: true
|
545
|
+
Rails/ExpandedDateRange:
|
546
|
+
Enabled: true
|
404
547
|
Rails/FindBy:
|
405
548
|
Enabled: true
|
549
|
+
Rails/FindById:
|
550
|
+
Enabled: true
|
406
551
|
Rails/FindEach:
|
407
552
|
Enabled: true
|
408
553
|
Rails/HasAndBelongsToMany:
|
@@ -415,14 +560,30 @@ Rails/HttpStatus:
|
|
415
560
|
Enabled: true
|
416
561
|
Rails/IgnoredSkipActionFilterOption:
|
417
562
|
Enabled: true
|
563
|
+
Rails/IndexBy:
|
564
|
+
Enabled: true
|
565
|
+
Rails/IndexWith:
|
566
|
+
Enabled: true
|
418
567
|
Rails/InverseOf:
|
419
568
|
Enabled: true
|
420
569
|
Rails/LexicallyScopedActionFilter:
|
421
570
|
Enabled: true
|
422
571
|
Rails/LinkToBlank:
|
423
572
|
Enabled: true
|
573
|
+
Rails/MailerName:
|
574
|
+
Enabled: true
|
575
|
+
Rails/MatchRoute:
|
576
|
+
Enabled: true
|
577
|
+
Rails/NegateInclude:
|
578
|
+
Enabled: true
|
424
579
|
Rails/NotNullColumn:
|
425
580
|
Enabled: true
|
581
|
+
Rails/OrderById:
|
582
|
+
Enabled: true
|
583
|
+
Rails/PluckId:
|
584
|
+
Enabled: true
|
585
|
+
Rails/PluckInWhere:
|
586
|
+
Enabled: true
|
426
587
|
Rails/PluralizationGrammar:
|
427
588
|
Enabled: true
|
428
589
|
Rails/Presence:
|
@@ -432,37 +593,65 @@ Rails/Present:
|
|
432
593
|
NotNilAndNotEmpty: false
|
433
594
|
NotBlank: true
|
434
595
|
UnlessBlank: true
|
596
|
+
Rails/RakeEnvironment:
|
597
|
+
Enabled: true
|
435
598
|
Rails/ReadWriteAttribute:
|
436
599
|
Enabled: true
|
437
600
|
Rails/RedundantAllowNil:
|
438
601
|
Enabled: true
|
439
602
|
Rails/RedundantReceiverInWithOptions:
|
440
603
|
Enabled: true
|
604
|
+
Rails/RedundantTravelBack:
|
605
|
+
Enabled: true
|
441
606
|
Rails/ReflectionClassName:
|
442
607
|
Enabled: true
|
443
608
|
Rails/RelativeDateConstant:
|
444
609
|
Enabled: true
|
610
|
+
Rails/RenderInline:
|
611
|
+
Enabled: true
|
612
|
+
Rails/RenderPlainText:
|
613
|
+
Enabled: true
|
445
614
|
Rails/RequestReferer:
|
446
615
|
Enabled: true
|
616
|
+
Rails/RequireDependency:
|
617
|
+
Enabled: true
|
447
618
|
Rails/ReversibleMigration:
|
448
619
|
Enabled: true
|
620
|
+
Include:
|
621
|
+
- db/migrate/*.rb
|
622
|
+
- db/sharded_migrate/*.rb
|
623
|
+
Rails/ReversibleMigrationMethodDefinition:
|
624
|
+
Enabled: true
|
625
|
+
Include:
|
626
|
+
- db/migrate/*.rb
|
627
|
+
- db/sharded_migrate/*.rb
|
449
628
|
Rails/SafeNavigation:
|
450
629
|
Enabled: true
|
630
|
+
Rails/SafeNavigationWithBlank:
|
631
|
+
Enabled: true
|
451
632
|
Rails/SaveBang:
|
452
633
|
Enabled: true
|
453
634
|
Exclude:
|
454
635
|
- spec/**/*
|
455
636
|
Rails/ScopeArgs:
|
456
637
|
Enabled: true
|
638
|
+
Rails/ShortI18n:
|
639
|
+
Enabled: true
|
457
640
|
Rails/SkipsModelValidations:
|
458
641
|
Enabled: true
|
459
642
|
Exclude:
|
460
643
|
- db/**/*
|
461
644
|
- spec/**/*
|
645
|
+
Rails/SquishedSQLHeredocs:
|
646
|
+
Enabled: true
|
462
647
|
Rails/TimeZone:
|
463
648
|
Enabled: true
|
649
|
+
Rails/TimeZoneAssignment:
|
650
|
+
Enabled: true
|
464
651
|
Rails/UniqBeforePluck:
|
465
652
|
Enabled: true
|
653
|
+
Rails/UniqueValidationWithoutIndex:
|
654
|
+
Enabled: true
|
466
655
|
Rails/UnknownEnv:
|
467
656
|
Enabled: true
|
468
657
|
Environments:
|
@@ -470,8 +659,27 @@ Rails/UnknownEnv:
|
|
470
659
|
- production
|
471
660
|
- staging
|
472
661
|
- test
|
662
|
+
Rails/UnusedIgnoredColumns:
|
663
|
+
Enabled: true
|
473
664
|
Rails/Validation:
|
474
665
|
Enabled: true
|
666
|
+
Rails/WhereEquals:
|
667
|
+
Enabled: true
|
668
|
+
Rails/WhereExists:
|
669
|
+
Enabled: true
|
670
|
+
Rails/WhereNot:
|
671
|
+
Enabled: true
|
672
|
+
|
673
|
+
Rake/ClassDefinitionInTask:
|
674
|
+
Enabled: true
|
675
|
+
Rake/Desc:
|
676
|
+
Enabled: true
|
677
|
+
Rake/DuplicateNamespace:
|
678
|
+
Enabled: true
|
679
|
+
Rake/DuplicateTask:
|
680
|
+
Enabled: true
|
681
|
+
Rake/MethodDefinitionInTask:
|
682
|
+
Enabled: true
|
475
683
|
|
476
684
|
RSpec/AroundBlock:
|
477
685
|
Enabled: true
|
@@ -481,6 +689,14 @@ RSpec/BeEql:
|
|
481
689
|
Enabled: true
|
482
690
|
RSpec/BeforeAfterAll:
|
483
691
|
Enabled: true
|
692
|
+
RSpec/Capybara/CurrentPathExpectation:
|
693
|
+
Enabled: true
|
694
|
+
RSpec/Capybara/FeatureMethods:
|
695
|
+
Enabled: true
|
696
|
+
RSpec/Capybara/VisibilityMatcher:
|
697
|
+
Enabled: true
|
698
|
+
RSpec/ContextMethod:
|
699
|
+
Enabled: true
|
484
700
|
RSpec/DescribeClass:
|
485
701
|
Enabled: true
|
486
702
|
Exclude:
|
@@ -492,20 +708,32 @@ RSpec/DescribeSymbol:
|
|
492
708
|
Enabled: true
|
493
709
|
RSpec/DescribedClass:
|
494
710
|
Enabled: true
|
711
|
+
RSpec/DescribedClassModuleWrapping:
|
712
|
+
Enabled: true
|
495
713
|
RSpec/EmptyExampleGroup:
|
496
714
|
Enabled: true
|
497
|
-
|
498
|
-
|
715
|
+
RSpec/EmptyHook:
|
716
|
+
Enabled: true
|
717
|
+
RSpec/EmptyLineAfterExample:
|
718
|
+
Enabled: true
|
499
719
|
RSpec/EmptyLineAfterExampleGroup:
|
500
720
|
Enabled: true
|
501
721
|
RSpec/ExampleWithoutDescription:
|
502
722
|
Enabled: true
|
503
723
|
RSpec/ExampleWording:
|
504
724
|
Enabled: true
|
725
|
+
RSpec/ExcessiveDocstringSpacing:
|
726
|
+
Enabled: true
|
505
727
|
RSpec/ExpectInHook:
|
506
728
|
Enabled: true
|
507
729
|
RSpec/ExpectOutput:
|
508
730
|
Enabled: true
|
731
|
+
RSpec/FactoryBot/AttributeDefinedStatically:
|
732
|
+
Enabled: true
|
733
|
+
RSpec/FactoryBot/CreateList:
|
734
|
+
Enabled: true
|
735
|
+
RSpec/FactoryBot/FactoryClassName:
|
736
|
+
Enabled: true
|
509
737
|
RSpec/FilePath:
|
510
738
|
Enabled: true
|
511
739
|
IgnoreMethods: true
|
@@ -513,16 +741,18 @@ RSpec/Focus:
|
|
513
741
|
Enabled: true
|
514
742
|
RSpec/HooksBeforeExamples:
|
515
743
|
Enabled: true
|
744
|
+
RSpec/IdenticalEqualityAssertion:
|
745
|
+
Enabled: true
|
516
746
|
RSpec/InstanceSpy:
|
517
747
|
Enabled: true
|
518
748
|
RSpec/InstanceVariable:
|
519
749
|
Enabled: true
|
520
|
-
RSpec/InvalidPredicateMatcher:
|
521
|
-
Enabled: true
|
522
750
|
RSpec/ItBehavesLike:
|
523
751
|
Enabled: true
|
524
752
|
RSpec/IteratedExpectation:
|
525
753
|
Enabled: true
|
754
|
+
RSpec/LeakyConstantDeclaration:
|
755
|
+
Enabled: true
|
526
756
|
RSpec/LetBeforeExamples:
|
527
757
|
Enabled: true
|
528
758
|
RSpec/LetSetup:
|
@@ -533,6 +763,10 @@ RSpec/MultipleSubjects:
|
|
533
763
|
Enabled: true
|
534
764
|
RSpec/OverwritingSetup:
|
535
765
|
Enabled: true
|
766
|
+
RSpec/Rails/AvoidSetupHook:
|
767
|
+
Enabled: true
|
768
|
+
RSpec/Rails/HttpStatus:
|
769
|
+
Enabled: true
|
536
770
|
RSpec/ReceiveCounts:
|
537
771
|
Enabled: true
|
538
772
|
RSpec/ReceiveNever:
|
@@ -541,6 +775,10 @@ RSpec/RepeatedDescription:
|
|
541
775
|
Enabled: true
|
542
776
|
RSpec/RepeatedExample:
|
543
777
|
Enabled: true
|
778
|
+
RSpec/RepeatedExampleGroupBody:
|
779
|
+
Enabled: true
|
780
|
+
RSpec/RepeatedExampleGroupDescription:
|
781
|
+
Enabled: true
|
544
782
|
RSpec/ScatteredLet:
|
545
783
|
Enabled: true
|
546
784
|
RSpec/ScatteredSetup:
|
@@ -551,6 +789,14 @@ RSpec/SharedExamples:
|
|
551
789
|
Enabled: true
|
552
790
|
RSpec/SingleArgumentMessageChain:
|
553
791
|
Enabled: true
|
792
|
+
RSpec/StubbedMock:
|
793
|
+
Enabled: true
|
794
|
+
RSpec/SubjectDeclaration:
|
795
|
+
Enabled: true
|
796
|
+
RSpec/VariableDefinition:
|
797
|
+
Enabled: true
|
798
|
+
RSpec/VariableName:
|
799
|
+
Enabled: true
|
554
800
|
RSpec/VerifiedDoubles:
|
555
801
|
Enabled: true
|
556
802
|
RSpec/VoidExpect:
|
@@ -560,6 +806,8 @@ RSpec/Yield:
|
|
560
806
|
|
561
807
|
Security/Eval:
|
562
808
|
Enabled: true
|
809
|
+
Security/IoMethods:
|
810
|
+
Enabled: true
|
563
811
|
Security/JSONLoad:
|
564
812
|
Enabled: true
|
565
813
|
Security/MarshalLoad:
|
@@ -569,11 +817,17 @@ Security/Open:
|
|
569
817
|
Security/YAMLLoad:
|
570
818
|
Enabled: true
|
571
819
|
|
820
|
+
Style/AccessorGrouping:
|
821
|
+
Enabled: true
|
572
822
|
Style/Alias:
|
573
823
|
Enabled: true
|
574
824
|
EnforcedStyle: prefer_alias_method
|
575
825
|
Style/AndOr:
|
576
826
|
Enabled: true
|
827
|
+
Style/ArgumentsForwarding:
|
828
|
+
Enabled: true
|
829
|
+
Style/ArrayCoercion:
|
830
|
+
Enabled: true
|
577
831
|
Style/ArrayJoin:
|
578
832
|
Enabled: true
|
579
833
|
Style/Attr:
|
@@ -584,6 +838,8 @@ Style/BarePercentLiterals:
|
|
584
838
|
Enabled: true
|
585
839
|
Style/BeginBlock:
|
586
840
|
Enabled: true
|
841
|
+
Style/BisectedAttrAccessor:
|
842
|
+
Enabled: true
|
587
843
|
Style/BlockComments:
|
588
844
|
Enabled: true
|
589
845
|
Exclude:
|
@@ -592,12 +848,18 @@ Style/BlockDelimiters:
|
|
592
848
|
Enabled: true
|
593
849
|
Exclude:
|
594
850
|
- spec/**/*
|
851
|
+
Style/CaseLikeIf:
|
852
|
+
Enabled: true
|
595
853
|
Style/CharacterLiteral:
|
596
854
|
Enabled: true
|
597
855
|
Style/ClassCheck:
|
598
856
|
Enabled: true
|
857
|
+
Style/ClassEqualityComparison:
|
858
|
+
Enabled: true
|
599
859
|
Style/ClassMethods:
|
600
860
|
Enabled: true
|
861
|
+
Style/CollectionCompact:
|
862
|
+
Enabled: true
|
601
863
|
Style/CollectionMethods:
|
602
864
|
Enabled: true
|
603
865
|
PreferredMethods:
|
@@ -609,18 +871,20 @@ Style/ColonMethodCall:
|
|
609
871
|
Enabled: true
|
610
872
|
Style/ColonMethodDefinition:
|
611
873
|
Enabled: true
|
874
|
+
Style/CombinableLoops:
|
875
|
+
Enabled: true
|
612
876
|
Style/CommentAnnotation:
|
613
877
|
Enabled: true
|
614
878
|
Style/ConditionalAssignment:
|
615
879
|
Enabled: true
|
616
|
-
Style/ConstantVisibility:
|
617
|
-
Enabled: true
|
618
880
|
Style/DateTime:
|
619
881
|
Enabled: true
|
620
882
|
Style/DefWithParentheses:
|
621
883
|
Enabled: true
|
622
884
|
Style/Dir:
|
623
885
|
Enabled: true
|
886
|
+
Style/DocumentDynamicEvalDefinition:
|
887
|
+
Enabled: true
|
624
888
|
Style/EachForSimpleLoop:
|
625
889
|
Enabled: true
|
626
890
|
Style/EachWithObject:
|
@@ -635,30 +899,56 @@ Style/EmptyLiteral:
|
|
635
899
|
Enabled: true
|
636
900
|
Style/EndBlock:
|
637
901
|
Enabled: true
|
902
|
+
Style/EndlessMethod:
|
903
|
+
Enabled: true
|
638
904
|
Style/EvalWithLocation:
|
639
905
|
Enabled: true
|
640
906
|
Style/EvenOdd:
|
641
907
|
Enabled: true
|
642
908
|
Style/ExpandPathArguments:
|
643
909
|
Enabled: true
|
910
|
+
Style/ExplicitBlockArgument:
|
911
|
+
Enabled: true
|
912
|
+
Style/ExponentialNotation:
|
913
|
+
Enabled: true
|
914
|
+
Style/FloatDivision:
|
915
|
+
Enabled: true
|
644
916
|
Style/For:
|
645
917
|
Enabled: true
|
918
|
+
Style/GlobalStdStream:
|
919
|
+
Enabled: true
|
646
920
|
Style/GlobalVars:
|
647
921
|
Enabled: true
|
922
|
+
Style/HashConversion:
|
923
|
+
Enabled: true
|
924
|
+
Style/HashEachMethods:
|
925
|
+
Enabled: true
|
926
|
+
Style/HashExcept:
|
927
|
+
Enabled: true
|
928
|
+
Style/HashLikeCase:
|
929
|
+
Enabled: true
|
648
930
|
Style/HashSyntax:
|
649
931
|
Enabled: true
|
932
|
+
Style/HashTransformKeys:
|
933
|
+
Enabled: true
|
934
|
+
Style/HashTransformValues:
|
935
|
+
Enabled: true
|
650
936
|
Style/IdenticalConditionalBranches:
|
651
937
|
Enabled: true
|
652
938
|
Style/IfInsideElse:
|
653
939
|
Enabled: true
|
654
940
|
Style/IfUnlessModifierOfIfUnless:
|
655
941
|
Enabled: true
|
942
|
+
Style/IfWithBooleanLiteralBranches:
|
943
|
+
Enabled: true
|
656
944
|
Style/IfWithSemicolon:
|
657
945
|
Enabled: true
|
658
946
|
Style/InfiniteLoop:
|
659
947
|
Enabled: true
|
660
948
|
Style/InverseMethods:
|
661
949
|
Enabled: true
|
950
|
+
Style/KeywordParametersOrder:
|
951
|
+
Enabled: true
|
662
952
|
Style/LambdaCall:
|
663
953
|
Enabled: true
|
664
954
|
Style/LineEndConcatenation:
|
@@ -667,8 +957,6 @@ Style/MethodCallWithoutArgsParentheses:
|
|
667
957
|
Enabled: true
|
668
958
|
Style/MethodDefParentheses:
|
669
959
|
Enabled: true
|
670
|
-
Style/MethodMissingSuper:
|
671
|
-
Enabled: true
|
672
960
|
Style/MinMax:
|
673
961
|
Enabled: true
|
674
962
|
Style/MissingRespondToMissing:
|
@@ -681,16 +969,22 @@ Style/ModuleFunction:
|
|
681
969
|
Enabled: true
|
682
970
|
Style/MultilineIfThen:
|
683
971
|
Enabled: true
|
972
|
+
Style/MultilineInPatternThen:
|
973
|
+
Enabled: true
|
684
974
|
Style/MultilineMemoization:
|
685
975
|
Enabled: true
|
686
976
|
Style/MultilineMethodSignature:
|
687
977
|
Enabled: true
|
978
|
+
Style/MultilineWhenThen:
|
979
|
+
Enabled: true
|
688
980
|
Style/MultipleComparison:
|
689
981
|
Enabled: true
|
690
982
|
Style/MutableConstant:
|
691
983
|
Enabled: true
|
692
984
|
Style/NegatedIf:
|
693
985
|
Enabled: true
|
986
|
+
Style/NegatedIfElseCondition:
|
987
|
+
Enabled: true
|
694
988
|
Style/NegatedUnless:
|
695
989
|
Enabled: true
|
696
990
|
Style/NegatedWhile:
|
@@ -703,10 +997,16 @@ Style/Next:
|
|
703
997
|
Enabled: true
|
704
998
|
Style/NilComparison:
|
705
999
|
Enabled: true
|
1000
|
+
Style/NilLambda:
|
1001
|
+
Enabled: true
|
706
1002
|
Style/NonNilCheck:
|
707
1003
|
Enabled: true
|
708
1004
|
Style/Not:
|
709
1005
|
Enabled: true
|
1006
|
+
Style/NumberedParameters:
|
1007
|
+
Enabled: true
|
1008
|
+
Style/NumberedParametersLimit:
|
1009
|
+
Enabled: true
|
710
1010
|
Style/NumericLiteralPrefix:
|
711
1011
|
Enabled: true
|
712
1012
|
Style/NumericLiterals:
|
@@ -715,6 +1015,8 @@ Style/OneLineConditional:
|
|
715
1015
|
Enabled: true
|
716
1016
|
Style/OptionalArguments:
|
717
1017
|
Enabled: true
|
1018
|
+
Style/OptionalBooleanParameter:
|
1019
|
+
Enabled: true
|
718
1020
|
Style/ParenthesesAroundCondition:
|
719
1021
|
Enabled: true
|
720
1022
|
Style/PercentQLiterals:
|
@@ -727,20 +1029,46 @@ Style/Proc:
|
|
727
1029
|
Enabled: true
|
728
1030
|
Style/RaiseArgs:
|
729
1031
|
Enabled: true
|
1032
|
+
Style/RedundantArgument:
|
1033
|
+
Enabled: true
|
1034
|
+
Style/RedundantAssignment:
|
1035
|
+
Enabled: true
|
730
1036
|
Style/RedundantBegin:
|
731
1037
|
Enabled: true
|
1038
|
+
Style/RedundantCapitalW:
|
1039
|
+
Enabled: true
|
1040
|
+
Style/RedundantCondition:
|
1041
|
+
Enabled: true
|
732
1042
|
Style/RedundantConditional:
|
733
1043
|
Enabled: true
|
734
1044
|
Style/RedundantException:
|
735
1045
|
Enabled: true
|
1046
|
+
Style/RedundantFetchBlock:
|
1047
|
+
Enabled: true
|
1048
|
+
Style/RedundantFileExtensionInRequire:
|
1049
|
+
Enabled: true
|
736
1050
|
Style/RedundantFreeze:
|
737
1051
|
Enabled: true
|
1052
|
+
Style/RedundantInterpolation:
|
1053
|
+
Enabled: true
|
738
1054
|
Style/RedundantParentheses:
|
739
1055
|
Enabled: true
|
1056
|
+
Style/RedundantPercentQ:
|
1057
|
+
Enabled: true
|
1058
|
+
Style/RedundantRegexpCharacterClass:
|
1059
|
+
Enabled: true
|
1060
|
+
Style/RedundantRegexpEscape:
|
1061
|
+
Enabled: true
|
740
1062
|
Style/RedundantReturn:
|
741
1063
|
Enabled: true
|
742
1064
|
Style/RedundantSelf:
|
743
1065
|
Enabled: true
|
1066
|
+
Style/RedundantSelfAssignment:
|
1067
|
+
Enabled: true
|
1068
|
+
Style/RedundantSelfAssignmentBranch:
|
1069
|
+
Enabled: true
|
1070
|
+
Style/RedundantSort:
|
1071
|
+
Enabled: true
|
744
1072
|
Style/RedundantSortBy:
|
745
1073
|
Enabled: true
|
746
1074
|
Style/RescueStandardError:
|
@@ -751,44 +1079,54 @@ Style/SafeNavigation:
|
|
751
1079
|
Enabled: true
|
752
1080
|
Style/Sample:
|
753
1081
|
Enabled: true
|
1082
|
+
Style/SelectByRegexp:
|
1083
|
+
Enabled: true
|
754
1084
|
Style/SelfAssignment:
|
755
1085
|
Enabled: true
|
756
1086
|
Style/SignalException:
|
757
1087
|
Enabled: true
|
1088
|
+
Style/SingleArgumentDig:
|
1089
|
+
Enabled: true
|
1090
|
+
Style/SlicingWithRange:
|
1091
|
+
Enabled: true
|
1092
|
+
Style/SoleNestedConditional:
|
1093
|
+
Enabled: true
|
758
1094
|
Style/SpecialGlobalVars:
|
759
1095
|
Enabled: true
|
760
1096
|
Style/StabbyLambdaParentheses:
|
761
1097
|
Enabled: true
|
1098
|
+
Style/StaticClass:
|
1099
|
+
Enabled: true
|
762
1100
|
Style/StderrPuts:
|
763
1101
|
Enabled: true
|
1102
|
+
Style/StringChars:
|
1103
|
+
Enabled: true
|
1104
|
+
Style/StringConcatenation:
|
1105
|
+
Enabled: true
|
764
1106
|
Style/StringMethods:
|
765
1107
|
Enabled: true
|
766
1108
|
Style/Strip:
|
767
1109
|
Enabled: true
|
768
1110
|
Style/StructInheritance:
|
769
1111
|
Enabled: true
|
1112
|
+
Style/SwapValues:
|
1113
|
+
Enabled: true
|
770
1114
|
Style/SymbolLiteral:
|
771
1115
|
Enabled: true
|
772
1116
|
Style/SymbolProc:
|
773
1117
|
Enabled: true
|
1118
|
+
Style/TopLevelMethodDefinition:
|
1119
|
+
Enabled: true
|
774
1120
|
Style/TrailingBodyOnClass:
|
775
1121
|
Enabled: true
|
776
1122
|
Style/TrailingBodyOnModule:
|
777
1123
|
Enabled: true
|
1124
|
+
Style/TrailingCommaInBlockArgs:
|
1125
|
+
Enabled: true
|
778
1126
|
Style/TrivialAccessors:
|
779
1127
|
Enabled: true
|
780
1128
|
Style/UnlessElse:
|
781
1129
|
Enabled: true
|
782
|
-
Style/UnneededCapitalW:
|
783
|
-
Enabled: true
|
784
|
-
Style/UnneededCondition:
|
785
|
-
Enabled: true
|
786
|
-
Style/UnneededInterpolation:
|
787
|
-
Enabled: true
|
788
|
-
Style/UnneededPercentQ:
|
789
|
-
Enabled: true
|
790
|
-
Style/UnneededSort:
|
791
|
-
Enabled: true
|
792
1130
|
Style/UnpackFirst:
|
793
1131
|
Enabled: true
|
794
1132
|
Style/VariableInterpolation:
|