diff options
Diffstat (limited to 'gems/gitlab-utils/.rubocop.yml')
-rw-r--r-- | gems/gitlab-utils/.rubocop.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gems/gitlab-utils/.rubocop.yml b/gems/gitlab-utils/.rubocop.yml new file mode 100644 index 00000000000..eeafd850c9b --- /dev/null +++ b/gems/gitlab-utils/.rubocop.yml @@ -0,0 +1,27 @@ +inherit_from: + - ../config/rubocop.yml + +RSpec/InstanceVariable: + Exclude: + - spec/**/*.rb + +Lint/BinaryOperatorWithIdenticalOperands: + Exclude: + - spec/**/*.rb + +# We use EnforcedStyle of comparison here due to it being better +# performing code as seen in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36221#note_375659681 +Style/NumericPredicate: + EnforcedStyle: comparison + +# FIXME: When enabled, there's a spec failure in ee/spec/requests/api/graphql/mutations/merge_requests/update_approval_rule_spec.rb:51, +# due to the `default_value` of `remove_hidden_groups` set to `[]`, most probably instead of `false`, in ee/app/graphql/mutations/merge_requests/update_approval_rule.rb. +# The problem is that `Object#=~` exists (even though it's deprecated), hence calling it on an `Array` doesn't blow up, but `Array#match?` doesn't exist. +Performance/RegexpMatch: + Exclude: + - lib/gitlab/utils.rb + +Rails/OutputSafety: + Details: grace period + Exclude: + - 'lib/gitlab/utils.rb' |