1
1
# Cloud Controller Specific Rubocop Config
2
2
3
- require :
3
+ plugins :
4
4
- rubocop-sequel
5
5
- rubocop-rails
6
6
- rubocop-capybara
7
7
- rubocop-factory_bot
8
8
- rubocop-rspec
9
9
- rubocop-rspec_rails
10
+
11
+ require :
10
12
- ./spec/linters/migration/add_constraint_name.rb
11
13
- ./spec/linters/migration/include_string_size.rb
12
14
- ./spec/linters/migration/require_primary_key.rb
@@ -160,10 +162,14 @@ Lint/AmbiguousOperatorPrecedence:
160
162
Enabled : true
161
163
Lint/AmbiguousRange :
162
164
Enabled : true
165
+ Lint/ArrayLiteralInRegexp :
166
+ Enabled : true
163
167
Lint/ConstantOverwrittenInRescue :
164
168
Enabled : true
165
169
Lint/ConstantReassignment :
166
170
Enabled : true
171
+ Lint/CopDirectiveSyntax :
172
+ Enabled : true
167
173
Lint/DeprecatedConstants :
168
174
Enabled : true
169
175
Lint/DuplicateBranch :
@@ -208,6 +214,8 @@ Lint/RedundantDirGlobSort:
208
214
Enabled : true
209
215
Lint/RedundantRegexpQuantifiers :
210
216
Enabled : true
217
+ Lint/RedundantTypeConversion :
218
+ Enabled : true
211
219
Lint/RefinementImportMethods :
212
220
Enabled : true
213
221
Lint/RequireRangeParentheses :
@@ -216,6 +224,8 @@ Lint/RequireRelativeSelfPath:
216
224
Enabled : true
217
225
Lint/SharedMutableDefault :
218
226
Enabled : true
227
+ Lint/SuppressedExceptionInNumberConversion :
228
+ Enabled : true
219
229
Lint/SymbolConversion :
220
230
Enabled : true
221
231
Lint/ToEnumArguments :
@@ -254,6 +264,8 @@ Style/CollectionCompact:
254
264
Enabled : true
255
265
Style/CombinableDefined :
256
266
Enabled : true
267
+ Style/ComparableBetween :
268
+ Enabled : true
257
269
Style/ComparableClamp :
258
270
Enabled : true
259
271
Style/ConcatArrayLiterals :
@@ -290,12 +302,16 @@ Style/HashConversion:
290
302
Enabled : true
291
303
Style/HashExcept :
292
304
Enabled : true
305
+ Style/HashFetchChain :
306
+ Enabled : true
293
307
Style/IfWithBooleanLiteralBranches :
294
308
Enabled : true
295
309
Style/InPatternThen :
296
310
Enabled : true
297
311
Style/ItAssignment :
298
312
Enabled : true
313
+ Style/ItBlockParameter :
314
+ Enabled : true
299
315
Style/KeywordArgumentsMerging :
300
316
Enabled : true
301
317
Style/MagicCommentFormat :
@@ -342,6 +358,8 @@ Style/RedundantEach:
342
358
Enabled : true
343
359
Style/RedundantFilterChain :
344
360
Enabled : true
361
+ Style/RedundantFormat :
362
+ Enabled : true
345
363
Style/RedundantHeredocDelimiterQuotes :
346
364
Enabled : true
347
365
Style/RedundantInitialize :
@@ -424,6 +442,8 @@ Rails/MatchRoute:
424
442
Enabled : true
425
443
Rails/MigrationClassName :
426
444
Enabled : true
445
+ Rails/MultipleRoutePaths :
446
+ Enabled : true
427
447
Rails/NegateInclude :
428
448
Enabled : true
429
449
Rails/Pluck :
@@ -454,6 +474,8 @@ Rails/SquishedSQLHeredocs:
454
474
Enabled : true
455
475
Rails/StripHeredoc :
456
476
Enabled : true
477
+ Rails/StrongParametersExpect :
478
+ Enabled : true
457
479
Rails/ThreeStateBooleanColumn :
458
480
Enabled : true
459
481
Rails/TimeZoneAssignment :
@@ -482,10 +504,14 @@ Rails/WhereNotWithMultipleConditions:
482
504
Enabled : true
483
505
Capybara/ClickLinkOrButtonStyle :
484
506
Enabled : false
507
+ Capybara/FindAllFirst :
508
+ Enabled : true
485
509
Capybara/MatchStyle :
486
510
Enabled : false
487
511
Capybara/NegationMatcher :
488
512
Enabled : false
513
+ Capybara/NegationMatcherAfterVisit :
514
+ Enabled : true
489
515
Capybara/RedundantWithinFind :
490
516
Enabled : true
491
517
Capybara/SpecificActions :
0 commit comments