Skip to content
Snippets Groups Projects
.rubocop_todo.yml 5.48 KiB
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-07-31 14:22:05 -0700 using RuboCop version 0.69.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Layout/SpaceBeforeFirstArg:
  Exclude:
    - 'files/gitlab-ctl-commands/pg-upgrade.rb'

# Offense count: 1
Lint/DuplicateMethods:
  Exclude:
    - 'files/gitlab-ctl-commands/lib/postgresql/pgpass.rb'

# Offense count: 7
Lint/InterpolationCheck:
  Exclude:
    - 'files/gitlab-cookbooks/gitlab/attributes/default.rb'
    - 'spec/chef/recipes/rake-attack_spec.rb'

# Offense count: 88
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
Naming/FileName:
  Enabled: false

# Offense count: 28
# Configuration parameters: Blacklist.
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
  Enabled: false

# Offense count: 20
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
  Exclude:
    - 'spec/**/*'
    - 'features/**/*'
    - 'files/gitlab-cookbooks/gitlab/libraries/helpers/base_pg_helper.rb'
    - 'files/gitlab-cookbooks/gitlab/libraries/redis_helper.rb'
    - 'files/gitlab-cookbooks/monitoring/libraries/prometheus_helper.rb'
    - 'files/gitlab-cookbooks/package/libraries/certificate_helper.rb'
    - 'files/gitlab-cookbooks/package/libraries/omnibus_helper.rb'
    - 'files/gitlab-ctl-commands-ee/lib/repmgr.rb'
    - 'files/gitlab-ctl-commands/lib/gitlab_ctl/prometheus_upgrade.rb'
    - 'lib/gitlab/build/check.rb'

# Offense count: 8
Style/CommentedKeyword:
  Exclude:
    - 'files/gitlab-cookbooks/gitlab-ee/libraries/fdw_helper.rb'
    - 'files/gitlab-cookbooks/gitlab-ee/libraries/gitlab_geo_helper.rb'
    - 'files/gitlab-cookbooks/gitlab/libraries/gitlab_rails.rb'
    - 'files/gitlab-cookbooks/mattermost/libraries/mattermost_helper.rb'
    - 'files/gitlab-cookbooks/package/libraries/config/roles/default.rb'
    - 'files/gitlab-cookbooks/package/libraries/helpers/services_helper.rb'
    - 'files/gitlab-cookbooks/package/libraries/helpers/version_helper.rb'
    - 'files/gitlab-cookbooks/package/libraries/omnibus_helper.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/Dir:
  Exclude:
    - 'files/gitlab-cookbooks/solo.rb'

# Offense count: 2
Style/EvalWithLocation:
  Exclude:
    - 'spec/chef/recipes/config_spec.rb'

# Offense count: 27
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
  Enabled: false

# Offense count: 216
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
  Enabled: false

# Offense count: 5
# Cop supports --auto-correct.
Style/RedundantBegin:
  Exclude:
    - 'files/gitlab-cookbooks/postgresql/recipes/bin.rb'
    - 'files/gitlab-ctl-commands/lib/gitlab_ctl/pg_upgrade.rb'
    - 'files/gitlab-ctl-commands/lib/postgresql.rb'
    - 'files/gitlab-ctl-commands/pg-upgrade.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/RedundantConditional:
  Exclude:
    - 'files/gitlab-cookbooks/mattermost/recipes/enable.rb'
    - 'files/gitlab-ctl-commands-ee/lib/geo/replication.rb'

# Offense count: 222
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
  Enabled: false

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
# Whitelist: present?, blank?, presence, try, try!
Style/SafeNavigation:
  Exclude:
    - 'config/software/rubygems.rb'
    - 'files/gitlab-cookbooks/gitlab/libraries/redis_helper.rb'
    - 'files/gitlab-cookbooks/monitoring/libraries/prometheus.rb'
    - 'files/gitlab-cookbooks/package/libraries/helpers/settings_helper.rb'

# Offense count: 26
# Cop supports --auto-correct.
Style/StderrPuts:
  Exclude:
    - 'files/gitlab-cookbooks/package/libraries/handlers/gitlab.rb'
    - 'files/gitlab-ctl-commands-ee/lib/pgbouncer.rb'
    - 'files/gitlab-ctl-commands-ee/lib/repmgr.rb'
    - 'files/gitlab-ctl-commands-ee/pgbouncer.rb'
    - 'files/gitlab-ctl-commands-ee/repmgr.rb'
    - 'files/gitlab-ctl-commands/letsencrypt.rb'
    - 'files/gitlab-ctl-commands/lib/gitlab_ctl/pg_upgrade.rb'
    - 'files/gitlab-ctl-commands/lib/postgresql/replication.rb'
    - 'files/gitlab-ctl-commands/pg-upgrade.rb'

# Offense count: 35
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
  Enabled: false

# Offense count: 112
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
  Enabled: false