diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
commit | 5afcbe03ead9ada87621888a31a62652b10a7e4f (patch) | |
tree | 9918b67a0d0f0bafa6542e839a8be37adf73102d /.rubocop.yml | |
parent | c97c0201564848c1f53226fe19d71fdcc472f7d0 (diff) |
Add latest changes from gitlab-org/gitlab@16-4-stable-eev16.4.0-rc42
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index f4bd7913b47..f42d7c7b076 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -13,12 +13,6 @@ inherit_from: <% end %> - '.rubocop_todo.yml' <% end %> - <% if RUBY_VERSION[/^\d+\.\d+/, 0] == '2.7' %> - - ./rubocop/rubocop-ruby27.yml - <% end %> - <% if RUBY_VERSION[/^\d+\.\d+/, 0] == '3.0' %> - - ./rubocop/rubocop-ruby30.yml - <% end %> <% if RUBY_VERSION[/^\d+\.\d+/, 0] == '3.1' %> - ./rubocop/rubocop-ruby31.yml <% end %> @@ -36,9 +30,9 @@ inherit_mode: - AllowedPatterns AllCops: - # Target the current Ruby version. For example, "2.7" or "3.0". + # Target the current Ruby version. For example, "3.0" or "3.1". TargetRubyVersion: <%= RUBY_VERSION[/^\d+\.\d+/, 0] %> - TargetRailsVersion: 6.0 + TargetRailsVersion: 7.0 Exclude: - 'gems/**/*' - 'vendor/**/*' @@ -112,9 +106,6 @@ Layout/LineLength: - 'ee/spec/controllers/concerns/routable_actions_spec.rb' - 'ee/spec/lib/gitlab/auth/group_saml/sso_enforcer_spec.rb' -Lint/LastKeywordArgument: - Safe: false - Lint/Debugger: DebuggerMethods: PryShell: @@ -166,6 +157,11 @@ RSpec/MultipleMemoizedHelpers: Max: 25 AllowSubject: true +Capybara/TestidFinders: + Include: + - 'spec/features/**/*' + - 'ee/spec/features/**/*' + Naming/FileName: ExpectMatchingDefinition: true CheckDefinitionPathHierarchy: false @@ -527,6 +523,8 @@ Naming/RescuedExceptionsVariableName: RSpec/AvoidTestProf: Include: + - 'spec/tasks/**/*.rb' + - 'ee/spec/tasks/**/*.rb' - 'spec/migrations/**/*.rb' - 'ee/spec/migrations/**/*.rb' - 'spec/lib/gitlab/background_migration/**/*.rb' @@ -581,6 +579,8 @@ RSpec/BeforeAll: - 'ee/spec/**/*.rb' # Conflict with RSpec/AvoidTestProf Exclude: + - 'spec/tasks/**/*.rb' + - 'ee/spec/tasks/**/*.rb' - 'spec/migrations/**/*.rb' - 'ee/spec/migrations/**/*.rb' - 'spec/lib/gitlab/background_migration/**/*.rb' |