diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
commit | db384e6b19af03b4c3c82a5760d83a3fd79f7982 (patch) | |
tree | 34beaef37df5f47ccbcf5729d7583aae093cffa0 /.rubocop.yml | |
parent | 54fd7b1bad233e3944434da91d257fa7f63c3996 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-eev16.3.0-rc42
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index d52c1784aae..f4bd7913b47 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -115,6 +115,11 @@ Layout/LineLength: Lint/LastKeywordArgument: Safe: false +Lint/Debugger: + DebuggerMethods: + PryShell: + binding.pry_shell + Lint/EmptyFile: Exclude: - 'db/seeds.rb' @@ -185,6 +190,7 @@ Naming/FileName: - 'jh/spec/**/*' - 'qa/bin/*' - 'qa/spec/**/*' + - 'qa/qa/factories/**/*' - 'qa/qa/specs/**/*' - 'qa/tasks/**/*.rake' - '**/*.ru' @@ -568,6 +574,20 @@ RSpec/FactoryBot/AvoidCreate: - 'ee/spec/routes/directs/*.rb' - 'ee/spec/lib/sidebars/**/*.rb' +RSpec/BeforeAll: + Enabled: true + Include: + - 'spec/**/*.rb' + - 'ee/spec/**/*.rb' + # Conflict with RSpec/AvoidTestProf + Exclude: + - 'spec/migrations/**/*.rb' + - 'ee/spec/migrations/**/*.rb' + - 'spec/lib/gitlab/background_migration/**/*.rb' + - 'ee/spec/lib/gitlab/background_migration/**/*.rb' + - 'ee/spec/lib/ee/gitlab/background_migration/**/*.rb' + - 'spec/lib/gitlab/database/**/*.rb' + RSpec/FactoryBot/StrategyInCallback: Enabled: true Include: @@ -992,6 +1012,9 @@ Search/NamespacedClass: - 'app/experiments/**/*_experiment.rb' - 'ee/app/experiments/**/*_experiment.rb' - 'lib/gitlab/instrumentation/**/*.rb' + - 'lib/gitlab/usage/metrics/instrumentations/**/*.rb' + - 'ee/lib/gitlab/usage/metrics/instrumentations/**/*.rb' + - 'lib/gitlab/sidekiq_middleware/pause_control/strategies/zoekt.rb' SidekiqLoadBalancing/WorkerDataConsistency: Enabled: true @@ -1022,3 +1045,12 @@ Search/AvoidCheckingFinishedOnDeprecatedMigrations: - 'ee/lib/elastic/**/*.rb' - 'ee/lib/gitlab/elastic/**/*.rb' - 'ee/spec/support/helpers/elasticsearch_helpers.rb' + +# See https://gitlab.com/gitlab-org/gitlab/-/issues/407233 +Cop/ExperimentsTestCoverage: + Enabled: true + Include: + - 'app/**/*' + - 'lib/**/*' + - 'ee/app/**/*' + - 'ee/lib/**/*' |