Skip to content

Commit d4c273d

Browse files
committed
Add/update rubocop rules that don't require code changes
1 parent b9c9a7e commit d4c273d

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.rubocop_cc.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
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
161163
Lint/AmbiguousRange:
162164
Enabled: true
165+
Lint/ArrayLiteralInRegexp:
166+
Enabled: true
163167
Lint/ConstantOverwrittenInRescue:
164168
Enabled: true
165169
Lint/ConstantReassignment:
166170
Enabled: true
171+
Lint/CopDirectiveSyntax:
172+
Enabled: true
167173
Lint/DeprecatedConstants:
168174
Enabled: true
169175
Lint/DuplicateBranch:
@@ -208,6 +214,8 @@ Lint/RedundantDirGlobSort:
208214
Enabled: true
209215
Lint/RedundantRegexpQuantifiers:
210216
Enabled: true
217+
Lint/RedundantTypeConversion:
218+
Enabled: true
211219
Lint/RefinementImportMethods:
212220
Enabled: true
213221
Lint/RequireRangeParentheses:
@@ -216,6 +224,8 @@ Lint/RequireRelativeSelfPath:
216224
Enabled: true
217225
Lint/SharedMutableDefault:
218226
Enabled: true
227+
Lint/SuppressedExceptionInNumberConversion:
228+
Enabled: true
219229
Lint/SymbolConversion:
220230
Enabled: true
221231
Lint/ToEnumArguments:
@@ -290,12 +300,16 @@ Style/HashConversion:
290300
Enabled: true
291301
Style/HashExcept:
292302
Enabled: true
303+
Style/HashFetchChain:
304+
Enabled: true
293305
Style/IfWithBooleanLiteralBranches:
294306
Enabled: true
295307
Style/InPatternThen:
296308
Enabled: true
297309
Style/ItAssignment:
298310
Enabled: true
311+
Style/ItBlockParameter:
312+
Enabled: true
299313
Style/KeywordArgumentsMerging:
300314
Enabled: true
301315
Style/MagicCommentFormat:
@@ -342,6 +356,8 @@ Style/RedundantEach:
342356
Enabled: true
343357
Style/RedundantFilterChain:
344358
Enabled: true
359+
Style/RedundantFormat:
360+
Enabled: true
345361
Style/RedundantHeredocDelimiterQuotes:
346362
Enabled: true
347363
Style/RedundantInitialize:
@@ -424,6 +440,8 @@ Rails/MatchRoute:
424440
Enabled: true
425441
Rails/MigrationClassName:
426442
Enabled: true
443+
Rails/MultipleRoutePaths:
444+
Enabled: true
427445
Rails/NegateInclude:
428446
Enabled: true
429447
Rails/Pluck:
@@ -454,6 +472,8 @@ Rails/SquishedSQLHeredocs:
454472
Enabled: true
455473
Rails/StripHeredoc:
456474
Enabled: true
475+
Rails/StrongParametersExpect:
476+
Enabled: true
457477
Rails/ThreeStateBooleanColumn:
458478
Enabled: true
459479
Rails/TimeZoneAssignment:
@@ -482,10 +502,14 @@ Rails/WhereNotWithMultipleConditions:
482502
Enabled: true
483503
Capybara/ClickLinkOrButtonStyle:
484504
Enabled: false
505+
Capybara/FindAllFirst:
506+
Enabled: true
485507
Capybara/MatchStyle:
486508
Enabled: false
487509
Capybara/NegationMatcher:
488510
Enabled: false
511+
Capybara/NegationMatcherAfterVisit:
512+
Enabled: true
489513
Capybara/RedundantWithinFind:
490514
Enabled: true
491515
Capybara/SpecificActions:

0 commit comments

Comments
 (0)