11# Cloud Controller Specific Rubocop Config
22
3- require :
3+ plugins :
44 - rubocop-sequel
55 - rubocop-rails
66 - rubocop-capybara
77 - rubocop-factory_bot
88 - rubocop-rspec
99 - rubocop-rspec_rails
10+
11+ require :
1012 - ./spec/linters/migration/add_constraint_name.rb
1113 - ./spec/linters/migration/include_string_size.rb
1214 - ./spec/linters/migration/require_primary_key.rb
@@ -160,10 +162,14 @@ Lint/AmbiguousOperatorPrecedence:
160162 Enabled : true
161163Lint/AmbiguousRange :
162164 Enabled : true
165+ Lint/ArrayLiteralInRegexp :
166+ Enabled : true
163167Lint/ConstantOverwrittenInRescue :
164168 Enabled : true
165169Lint/ConstantReassignment :
166170 Enabled : true
171+ Lint/CopDirectiveSyntax :
172+ Enabled : true
167173Lint/DeprecatedConstants :
168174 Enabled : true
169175Lint/DuplicateBranch :
@@ -208,6 +214,8 @@ Lint/RedundantDirGlobSort:
208214 Enabled : true
209215Lint/RedundantRegexpQuantifiers :
210216 Enabled : true
217+ Lint/RedundantTypeConversion :
218+ Enabled : true
211219Lint/RefinementImportMethods :
212220 Enabled : true
213221Lint/RequireRangeParentheses :
@@ -216,6 +224,8 @@ Lint/RequireRelativeSelfPath:
216224 Enabled : true
217225Lint/SharedMutableDefault :
218226 Enabled : true
227+ Lint/SuppressedExceptionInNumberConversion :
228+ Enabled : true
219229Lint/SymbolConversion :
220230 Enabled : true
221231Lint/ToEnumArguments :
@@ -290,12 +300,16 @@ Style/HashConversion:
290300 Enabled : true
291301Style/HashExcept :
292302 Enabled : true
303+ Style/HashFetchChain :
304+ Enabled : true
293305Style/IfWithBooleanLiteralBranches :
294306 Enabled : true
295307Style/InPatternThen :
296308 Enabled : true
297309Style/ItAssignment :
298310 Enabled : true
311+ Style/ItBlockParameter :
312+ Enabled : true
299313Style/KeywordArgumentsMerging :
300314 Enabled : true
301315Style/MagicCommentFormat :
@@ -342,6 +356,8 @@ Style/RedundantEach:
342356 Enabled : true
343357Style/RedundantFilterChain :
344358 Enabled : true
359+ Style/RedundantFormat :
360+ Enabled : true
345361Style/RedundantHeredocDelimiterQuotes :
346362 Enabled : true
347363Style/RedundantInitialize :
@@ -424,6 +440,8 @@ Rails/MatchRoute:
424440 Enabled : true
425441Rails/MigrationClassName :
426442 Enabled : true
443+ Rails/MultipleRoutePaths :
444+ Enabled : true
427445Rails/NegateInclude :
428446 Enabled : true
429447Rails/Pluck :
@@ -454,6 +472,8 @@ Rails/SquishedSQLHeredocs:
454472 Enabled : true
455473Rails/StripHeredoc :
456474 Enabled : true
475+ Rails/StrongParametersExpect :
476+ Enabled : true
457477Rails/ThreeStateBooleanColumn :
458478 Enabled : true
459479Rails/TimeZoneAssignment :
@@ -482,10 +502,14 @@ Rails/WhereNotWithMultipleConditions:
482502 Enabled : true
483503Capybara/ClickLinkOrButtonStyle :
484504 Enabled : false
505+ Capybara/FindAllFirst :
506+ Enabled : true
485507Capybara/MatchStyle :
486508 Enabled : false
487509Capybara/NegationMatcher :
488510 Enabled : false
511+ Capybara/NegationMatcherAfterVisit :
512+ Enabled : true
489513Capybara/RedundantWithinFind :
490514 Enabled : true
491515Capybara/SpecificActions :
0 commit comments