wonder-ruby-style 0.71.0 → 1.65.1

Sign up to get free protection for your applications and to get access to all the features.
data/presets/latest.yml CHANGED
@@ -15,21 +15,406 @@ AllCops:
15
15
  - "tmp/**/*"
16
16
  - "vendor/**/*"
17
17
  - "reports/**/*"
18
-
18
+ Style/RescueStandardError:
19
+ Enabled: false
19
20
  Style/Documentation:
20
21
  Enabled: false
21
-
22
22
  Style/DoubleNegation:
23
23
  Enabled: false
24
-
25
- Metrics/LineLength:
24
+ Layout/LineLength:
26
25
  Enabled: true
27
26
  AutoCorrect: true
28
- Max: 100
27
+ Max: 150
29
28
  AllowHeredoc: true
30
29
  AllowURI: true
31
30
  URISchemes:
32
31
  - http
33
32
  - https
34
33
  IgnoreCopDirectives: false
35
- IgnoredPatterns: []
34
+ AllowedPatterns: []
35
+ Rails/EnumHash:
36
+ Enabled: false
37
+ Style/RedundantParentheses:
38
+ Enabled: false
39
+ Rails/FindEach:
40
+ Enabled: false
41
+ Naming/MethodParameterName:
42
+ Enabled: false
43
+ Layout/HashAlignment:
44
+ Enabled: false
45
+ Metrics/AbcSize:
46
+ Enabled: false
47
+ Rails/UniqueValidationWithoutIndex:
48
+ Enabled: false
49
+ Rails/Output:
50
+ Enabled: false
51
+ Rails/HasManyOrHasOneDependent:
52
+ Enabled: false
53
+ Lint/MissingSuper:
54
+ Enabled: false
55
+ Style/ClassAndModuleChildren:
56
+ Enabled: false
57
+ Style/StringConcatenation:
58
+ Enabled: false
59
+ Style/IfUnlessModifier:
60
+ Enabled: false
61
+ Metrics/MethodLength:
62
+ Max: 20
63
+ Gemspec/AddRuntimeDependency: # new in 1.65
64
+ Enabled: true
65
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
66
+ Enabled: true
67
+ Gemspec/DevelopmentDependencies: # new in 1.44
68
+ Enabled: true
69
+ Gemspec/RequireMFA: # new in 1.23
70
+ Enabled: true
71
+ Layout/LineContinuationLeadingSpace: # new in 1.31
72
+ Enabled: true
73
+ Layout/LineContinuationSpacing: # new in 1.31
74
+ Enabled: true
75
+ Layout/LineEndStringConcatenationIndentation: # new in 1.18
76
+ Enabled: true
77
+ Layout/SpaceBeforeBrackets: # new in 1.7
78
+ Enabled: true
79
+ Lint/AmbiguousAssignment: # new in 1.7
80
+ Enabled: true
81
+ Lint/AmbiguousOperatorPrecedence: # new in 1.21
82
+ Enabled: true
83
+ Lint/AmbiguousRange: # new in 1.19
84
+ Enabled: true
85
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
86
+ Enabled: true
87
+ Lint/DeprecatedConstants: # new in 1.8
88
+ Enabled: true
89
+ Lint/DuplicateBranch: # new in 1.3
90
+ Enabled: true
91
+ Lint/DuplicateMagicComment: # new in 1.37
92
+ Enabled: true
93
+ Lint/DuplicateMatchPattern: # new in 1.50
94
+ Enabled: true
95
+ Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
96
+ Enabled: true
97
+ Lint/EmptyBlock: # new in 1.1
98
+ Enabled: true
99
+ Lint/EmptyClass: # new in 1.3
100
+ Enabled: true
101
+ Lint/EmptyInPattern: # new in 1.16
102
+ Enabled: true
103
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
104
+ Enabled: true
105
+ Lint/ItWithoutArgumentsInBlock: # new in 1.59
106
+ Enabled: true
107
+ Lint/LambdaWithoutLiteralBlock: # new in 1.8
108
+ Enabled: true
109
+ Lint/LiteralAssignmentInCondition: # new in 1.58
110
+ Enabled: true
111
+ Lint/MixedCaseRange: # new in 1.53
112
+ Enabled: true
113
+ Lint/NoReturnInBeginEndBlocks: # new in 1.2
114
+ Enabled: true
115
+ Lint/NonAtomicFileOperation: # new in 1.31
116
+ Enabled: true
117
+ Lint/NumberedParameterAssignment: # new in 1.9
118
+ Enabled: true
119
+ Lint/OrAssignmentToConstant: # new in 1.9
120
+ Enabled: true
121
+ Lint/RedundantDirGlobSort: # new in 1.8
122
+ Enabled: true
123
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
124
+ Enabled: true
125
+ Lint/RefinementImportMethods: # new in 1.27
126
+ Enabled: true
127
+ Lint/RequireRangeParentheses: # new in 1.32
128
+ Enabled: true
129
+ Lint/RequireRelativeSelfPath: # new in 1.22
130
+ Enabled: true
131
+ Lint/SymbolConversion: # new in 1.9
132
+ Enabled: true
133
+ Lint/ToEnumArguments: # new in 1.1
134
+ Enabled: true
135
+ Lint/TripleQuotes: # new in 1.9
136
+ Enabled: true
137
+ Lint/UnexpectedBlockArity: # new in 1.5
138
+ Enabled: true
139
+ Lint/UnmodifiedReduceAccumulator: # new in 1.1
140
+ Enabled: true
141
+ Lint/UselessRescue: # new in 1.43
142
+ Enabled: true
143
+ Lint/UselessRuby2Keywords: # new in 1.23
144
+ Enabled: true
145
+ Metrics/CollectionLiteralLength: # new in 1.47
146
+ Enabled: true
147
+ Naming/BlockForwarding: # new in 1.24
148
+ Enabled: true
149
+ Security/CompoundHash: # new in 1.28
150
+ Enabled: true
151
+ Security/IoMethods: # new in 1.22
152
+ Enabled: true
153
+ Style/ArgumentsForwarding: # new in 1.1
154
+ Enabled: false
155
+ Style/ArrayIntersect: # new in 1.40
156
+ Enabled: true
157
+ Style/CollectionCompact: # new in 1.2
158
+ Enabled: true
159
+ Style/ComparableClamp: # new in 1.44
160
+ Enabled: true
161
+ Style/ConcatArrayLiterals: # new in 1.41
162
+ Enabled: true
163
+ Style/DataInheritance: # new in 1.49
164
+ Enabled: true
165
+ Style/DirEmpty: # new in 1.48
166
+ Enabled: true
167
+ Style/DocumentDynamicEvalDefinition: # new in 1.1
168
+ Enabled: true
169
+ Style/EmptyHeredoc: # new in 1.32
170
+ Enabled: true
171
+ Style/EndlessMethod: # new in 1.8
172
+ Enabled: true
173
+ Style/EnvHome: # new in 1.29
174
+ Enabled: true
175
+ Style/ExactRegexpMatch: # new in 1.51
176
+ Enabled: true
177
+ Style/FetchEnvVar: # new in 1.28
178
+ Enabled: true
179
+ Style/FileEmpty: # new in 1.48
180
+ Enabled: true
181
+ Style/FileRead: # new in 1.24
182
+ Enabled: true
183
+ Style/FileWrite: # new in 1.24
184
+ Enabled: true
185
+ Style/HashConversion: # new in 1.10
186
+ Enabled: true
187
+ Style/HashExcept: # new in 1.7
188
+ Enabled: true
189
+ Style/IfWithBooleanLiteralBranches: # new in 1.9
190
+ Enabled: true
191
+ Style/InPatternThen: # new in 1.16
192
+ Enabled: true
193
+ Style/MagicCommentFormat: # new in 1.35
194
+ Enabled: true
195
+ Style/MapCompactWithConditionalBlock: # new in 1.30
196
+ Enabled: true
197
+ Style/MapIntoArray: # new in 1.63
198
+ Enabled: true
199
+ Style/MapToHash: # new in 1.24
200
+ Enabled: false
201
+ Style/MapToSet: # new in 1.42
202
+ Enabled: true
203
+ Style/MinMaxComparison: # new in 1.42
204
+ Enabled: true
205
+ Style/MultilineInPatternThen: # new in 1.16
206
+ Enabled: true
207
+ Style/NegatedIfElseCondition: # new in 1.2
208
+ Enabled: true
209
+ Style/NestedFileDirname: # new in 1.26
210
+ Enabled: true
211
+ Style/NilLambda: # new in 1.3
212
+ Enabled: true
213
+ Style/NumberedParameters: # new in 1.22
214
+ Enabled: true
215
+ Style/NumberedParametersLimit: # new in 1.22
216
+ Enabled: true
217
+ Style/ObjectThen: # new in 1.28
218
+ Enabled: true
219
+ Style/OpenStructUse: # new in 1.23
220
+ Enabled: true
221
+ Style/OperatorMethodCall: # new in 1.37
222
+ Enabled: true
223
+ Style/QuotedSymbols: # new in 1.16
224
+ Enabled: true
225
+ Style/RedundantArgument: # new in 1.4
226
+ Enabled: true
227
+ Style/RedundantArrayConstructor: # new in 1.52
228
+ Enabled: true
229
+ Style/RedundantConstantBase: # new in 1.40
230
+ Enabled: true
231
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
232
+ Enabled: true
233
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
234
+ Enabled: true
235
+ Style/RedundantEach: # new in 1.38
236
+ Enabled: true
237
+ Style/RedundantFilterChain: # new in 1.52
238
+ Enabled: true
239
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
240
+ Enabled: true
241
+ Style/RedundantInitialize: # new in 1.27
242
+ Enabled: true
243
+ Style/RedundantLineContinuation: # new in 1.49
244
+ Enabled: true
245
+ Style/RedundantRegexpArgument: # new in 1.53
246
+ Enabled: true
247
+ Style/RedundantRegexpConstructor: # new in 1.52
248
+ Enabled: true
249
+ Style/RedundantSelfAssignmentBranch: # new in 1.19
250
+ Enabled: true
251
+ Style/RedundantStringEscape: # new in 1.37
252
+ Enabled: true
253
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
254
+ Enabled: true
255
+ Style/SelectByRegexp: # new in 1.22
256
+ Enabled: true
257
+ Style/SendWithLiteralMethodName: # new in 1.64
258
+ Enabled: false
259
+ Style/SingleLineDoEndBlock: # new in 1.57
260
+ Enabled: true
261
+ Style/StringChars: # new in 1.12
262
+ Enabled: true
263
+ Style/SuperArguments: # new in 1.64
264
+ Enabled: true
265
+ Style/SuperWithArgsParentheses: # new in 1.58
266
+ Enabled: true
267
+ Style/SwapValues: # new in 1.1
268
+ Enabled: true
269
+ Style/YAMLFileRead: # new in 1.53
270
+ Enabled: true
271
+ Performance/AncestorsInclude: # new in 1.7
272
+ Enabled: true
273
+ Performance/BigDecimalWithNumericArgument: # new in 1.7
274
+ Enabled: true
275
+ Performance/BlockGivenWithExplicitBlock: # new in 1.9
276
+ Enabled: true
277
+ Performance/CollectionLiteralInLoop: # new in 1.8
278
+ Enabled: true
279
+ Performance/ConcurrentMonotonicTime: # new in 1.12
280
+ Enabled: true
281
+ Performance/ConstantRegexp: # new in 1.9
282
+ Enabled: true
283
+ Performance/MapCompact: # new in 1.11
284
+ Enabled: true
285
+ Performance/MapMethodChain: # new in 1.19
286
+ Enabled: true
287
+ Performance/MethodObjectAsBlock: # new in 1.9
288
+ Enabled: true
289
+ Performance/RedundantEqualityComparisonBlock: # new in 1.10
290
+ Enabled: true
291
+ Performance/RedundantSortBlock: # new in 1.7
292
+ Enabled: true
293
+ Performance/RedundantSplitRegexpArgument: # new in 1.10
294
+ Enabled: true
295
+ Performance/RedundantStringChars: # new in 1.7
296
+ Enabled: true
297
+ Performance/ReverseFirst: # new in 1.7
298
+ Enabled: true
299
+ Performance/SortReverse: # new in 1.7
300
+ Enabled: true
301
+ Performance/Squeeze: # new in 1.7
302
+ Enabled: true
303
+ Performance/StringIdentifierArgument: # new in 1.13
304
+ Enabled: true
305
+ Performance/StringInclude: # new in 1.7
306
+ Enabled: true
307
+ Performance/Sum: # new in 1.8
308
+ Enabled: true
309
+ Rails/ActionControllerFlashBeforeRender: # new in 2.16
310
+ Enabled: true
311
+ Rails/ActionControllerTestCase: # new in 2.14
312
+ Enabled: true
313
+ Rails/ActionOrder: # new in 2.17
314
+ Enabled: true
315
+ Rails/ActiveRecordCallbacksOrder: # new in 2.7
316
+ Enabled: true
317
+ Rails/ActiveSupportOnLoad: # new in 2.16
318
+ Enabled: true
319
+ Rails/AddColumnIndex: # new in 2.11
320
+ Enabled: true
321
+ Rails/AfterCommitOverride: # new in 2.8
322
+ Enabled: true
323
+ Rails/AttributeDefaultBlockValue: # new in 2.9
324
+ Enabled: true
325
+ Rails/CompactBlank: # new in 2.13
326
+ Enabled: true
327
+ Rails/DangerousColumnNames: # new in 2.21
328
+ Enabled: true
329
+ Rails/DeprecatedActiveModelErrorsMethods: # new in 2.14
330
+ Enabled: true
331
+ Rails/DotSeparatedKeys: # new in 2.15
332
+ Enabled: true
333
+ Rails/DuplicateAssociation: # new in 2.14
334
+ Enabled: true
335
+ Rails/DuplicateScope: # new in 2.14
336
+ Enabled: true
337
+ Rails/DurationArithmetic: # new in 2.13
338
+ Enabled: true
339
+ Rails/EagerEvaluationLogMessage: # new in 2.11
340
+ Enabled: true
341
+ Rails/EnvLocal: # new in 2.22
342
+ Enabled: true
343
+ Rails/ExpandedDateRange: # new in 2.11
344
+ Enabled: true
345
+ Rails/FindById: # new in 2.7
346
+ Enabled: true
347
+ Rails/FreezeTime: # new in 2.16
348
+ Enabled: true
349
+ Rails/I18nLazyLookup: # new in 2.14
350
+ Enabled: true
351
+ Rails/I18nLocaleAssignment: # new in 2.11
352
+ Enabled: true
353
+ Rails/I18nLocaleTexts: # new in 2.14
354
+ Enabled: true
355
+ Rails/IgnoredColumnsAssignment: # new in 2.17
356
+ Enabled: true
357
+ Rails/Inquiry: # new in 2.7
358
+ Enabled: true
359
+ Rails/MailerName: # new in 2.7
360
+ Enabled: true
361
+ Rails/MatchRoute: # new in 2.7
362
+ Enabled: true
363
+ Rails/MigrationClassName: # new in 2.14
364
+ Enabled: true
365
+ Rails/NegateInclude: # new in 2.7
366
+ Enabled: true
367
+ Rails/Pluck: # new in 2.7
368
+ Enabled: true
369
+ Rails/PluckInWhere: # new in 2.7
370
+ Enabled: true
371
+ Rails/RedundantActiveRecordAllMethod: # new in 2.21
372
+ Enabled: true
373
+ Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
374
+ Enabled: true
375
+ Rails/RedundantTravelBack: # new in 2.12
376
+ Enabled: true
377
+ Rails/RenderInline: # new in 2.7
378
+ Enabled: true
379
+ Rails/RenderPlainText: # new in 2.7
380
+ Enabled: true
381
+ Rails/ResponseParsedBody: # new in 2.18
382
+ Enabled: true
383
+ Rails/RootJoinChain: # new in 2.13
384
+ Enabled: true
385
+ Rails/RootPathnameMethods: # new in 2.16
386
+ Enabled: true
387
+ Rails/RootPublicPath: # new in 2.15
388
+ Enabled: true
389
+ Rails/ShortI18n: # new in 2.7
390
+ Enabled: true
391
+ Rails/SquishedSQLHeredocs: # new in 2.8
392
+ Enabled: true
393
+ Rails/StripHeredoc: # new in 2.15
394
+ Enabled: true
395
+ Rails/ThreeStateBooleanColumn: # new in 2.19
396
+ Enabled: true
397
+ Rails/TimeZoneAssignment: # new in 2.10
398
+ Enabled: true
399
+ Rails/ToFormattedS: # new in 2.15
400
+ Enabled: true
401
+ Rails/ToSWithArgument: # new in 2.16
402
+ Enabled: true
403
+ Rails/TopLevelHashWithIndifferentAccess: # new in 2.16
404
+ Enabled: true
405
+ Rails/TransactionExitStatement: # new in 2.14
406
+ Enabled: true
407
+ Rails/UnusedRenderContent: # new in 2.21
408
+ Enabled: true
409
+ Rails/WhereEquals: # new in 2.9
410
+ Enabled: true
411
+ Rails/WhereExists: # new in 2.7
412
+ Enabled: true
413
+ Rails/WhereMissing: # new in 2.16
414
+ Enabled: true
415
+ Rails/WhereNot: # new in 2.8
416
+ Enabled: true
417
+ Rails/WhereNotWithMultipleConditions: # new in 2.17
418
+ Enabled: true
419
+ Rails/WhereRange: # new in 2.25
420
+ Enabled: true