summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-26 18:07:51 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-26 18:07:51 +0000
commitcea01cb81787f0d2c119b287a5833f2e267324bc (patch)
treeca37d57c1ec57ef2fa475e6489c4c107cce89dbc /.rubocop.yml
parentee24c7d68f57a67754a5d1e2ea99f688029d14bd (diff)
downloadgitlab-ce-cea01cb81787f0d2c119b287a5833f2e267324bc.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 1bdbc34c2e2..f7d08c191aa 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -627,6 +627,19 @@ RSpec/EnvAssignment:
- 'ee/spec/**/fast_spec_helper.rb'
- 'spec/**/spec_helper.rb'
- 'ee/spec/**/spec_helper.rb'
+
+RSpec/EnvMocking:
+ Enable: true
+ Include:
+ - 'spec/**/*.rb'
+ - 'ee/spec/**/*.rb'
+ Exclude:
+ - 'spec/**/fast_spec_helper.rb'
+ - 'ee/spec/**/fast_spec_helper.rb'
+ - 'spec/**/spec_helper.rb'
+ - 'ee/spec/**/spec_helper.rb'
+ - 'spec/support/helpers/stub_env.rb'
+
RSpec/BeSuccessMatcher:
Enabled: true
Include: