summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
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