rubocop-rspec.yml in gitlab-styles-10.1.0 vs rubocop-rspec.yml in gitlab-styles-11.0.0
- old
+ new
@@ -81,10 +81,11 @@
# Checks for opportunities to use `expect { … }.to output`.
RSpec/ExpectOutput:
Enabled: true
# Checks the file and folder naming of the spec file.
+# Will be replaced with RSpec/SpecFilePathFormat and RSpec/SpecFilePathSuffix.
RSpec/FilePath:
Enabled: true
IgnoreMethods: true
# Checks if there are focused specs.
@@ -135,11 +136,11 @@
RSpec/MultipleExpectations:
Enabled: false
# Checks for explicitly referenced test subjects.
RSpec/NamedSubject:
- Enabled: false
+ Enabled: true
# Checks for nested example groups.
RSpec/NestedGroups:
Enabled: false
@@ -160,9 +161,20 @@
RSpec/SingleLineHook:
Enabled: true
Exclude:
- 'spec/factories/*'
- 'spec/requests/api/v3/*'
+
+# Checks the file and folder naming of the spec file.
+# Will replace RSpec/FilePath.
+RSpec/SpecFilePathFormat:
+ Enabled: false
+ IgnoreMethods: true
+
+# Checks the file and folder naming of the spec file.
+# Will replace RSpec/FilePath.
+RSpec/SpecFilePathSuffix:
+ Enabled: false
# Checks that message expectations do not have a configured response.
# https://docs.rubocop.org/rubocop-rspec/1.44/cops_rspec.html#rspecstubbedmock
RSpec/StubbedMock:
Enabled: false