summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-03-18 20:02:30 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-18 20:02:30 +0000
commit41fe97390ceddf945f3d967b8fdb3de4c66b7dea (patch)
tree9c8d89a8624828992f06d892cd2f43818ff5dcc8 /.rubocop.yml
parent0804d2dc31052fb45a1efecedc8e06ce9bc32862 (diff)
downloadgitlab-ce-14.9.0-rc42.tar.gz
Add latest changes from gitlab-org/gitlab@14-9-stable-eev14.9.0-rc42
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 8416653d677..99424713bd8 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -16,6 +16,9 @@ inherit_from:
- ./rubocop/rubocop-migrations.yml
- ./rubocop/rubocop-usage-data.yml
- ./rubocop/rubocop-code_reuse.yml
+ <% Dir.glob('jh/rubocop/**/*.yml').each do |jh_rubocop_yaml| %>
+ - '<%= jh_rubocop_yaml %>'
+ <% end %>
inherit_mode:
merge:
@@ -43,6 +46,10 @@ AllCops:
CacheRootDirectory: <%= Dir.getwd %>/tmp
MaxFilesInCache: 30000
+Metrics/ParameterLists:
+ Exclude:
+ - 'app/components/**/*'
+
Cop/AvoidKeywordArgumentsInSidekiqWorkers:
Enabled: true
Include:
@@ -236,6 +243,10 @@ Rails/FindBy:
- 'spec/**/*.rb'
- 'ee/spec/**/*.rb'
+Rails/IndexBy:
+ Exclude:
+ - 'tooling/danger/**/*.rb'
+
# This is currently exiting with a rubocop exception error and should be
# resolved hopefully a future update
# An error occurred while Rails/UniqueValidationWithoutIndex cop was inspecting
@@ -604,8 +615,9 @@ Rails/TimeZone:
- 'ee/spec/workers/**/*'
- 'ee/lib/**/*'
- 'ee/spec/lib/**/*'
+ - 'spec/features/**/*'
+ - 'ee/spec/features/**/*'
-# WIP: See https://gitlab.com/gitlab-org/gitlab/-/issues/220040
Rails/SaveBang:
Enabled: true
AllowImplicitReturn: false