@@ -4,7 +4,7 @@ inherit_mode:
44 merge :
55 - Exclude
66
7- require :
7+ plugins :
88 - rubocop-capybara
99 - rubocop-factory_bot
1010 - rubocop-performance
@@ -23,6 +23,14 @@ AllCops:
2323Rails :
2424 Enabled : true
2525
26+ # Require tests to specify whether an element is a link or a button
27+ Capybara/ClickLinkOrButtonStyle :
28+ EnforcedStyle : strict
29+
30+ # Match style of regular expectations
31+ Capybara/NegationMatcher :
32+ EnforcedStyle : not_to
33+
2634# Put development dependencies in the gemspec so rubygems.org knows about them
2735Gemspec/DevelopmentDependencies :
2836 EnforcedStyle : gemspec
@@ -103,6 +111,10 @@ Rails/SkipsModelValidations:
103111 Exclude :
104112 - ' spec/dummy/db/migrate/*'
105113
114+ # Spec type inference is disabled, so this cop must be disabled too.
115+ RSpecRails/InferredSpecType :
116+ Enabled : false
117+
106118# Allow the use of 'and' 'or' in control structures.
107119Style/AndOr :
108120 EnforcedStyle : conditionals
@@ -163,14 +175,6 @@ Style/StringLiteralsInInterpolation:
163175Style/SymbolArray :
164176 EnforcedStyle : brackets
165177
166- # Prefer consistent lines for multi-line arrays
167- Style/TrailingCommaInArrayLiteral :
168- EnforcedStyleForMultiline : comma
169-
170- # Prefer consistent lines for multi-line hashes
171- Style/TrailingCommaInHashLiteral :
172- EnforcedStyleForMultiline : comma
173-
174178# Allow small arrays of words with quotes
175179Style/WordArray :
176180 MinSize : 4
0 commit comments