Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.rubocop.yml « gitlab-utils « gems - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bea4262fa2b93230f267d444dca136fd8724e488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
inherit_from:
  - ../config/rubocop.yml

Gemfile/MissingFeatureCategory:
  Enabled: false

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'