https://github.com/wikimedia/operations-puppet
Raw File
Tip revision: 2eb401e5f31b84e58a913ffc3235522d46d4668b authored by Jaime Crespo on 11 April 2024, 16:18:16 UTC
mariadb: Reenable notifications for db2201 & db2202
Tip revision: 2eb401e
.rubocop.yml
inherit_from: .rubocop_todo.yml

# Copied from
# https://www.mediawiki.org/wiki/Manual:Coding_conventions/Ruby#Base_configuration
# and modified

AllCops:
  TargetRubyVersion: 2.3
  StyleGuideCopsOnly: true
  DisplayCopNames: true
  Exclude:
    # core modules
    - 'core_modules/**/*'
    # third party modules
    - 'vendor_modules/**/*'
    # bundler installation files
    - 'vendor/**/*'
    - '**/Vagrantfile'
    - 'modules/profile/files/ci/lintian-junit-report'
    - 'modules/opensearch_dashboards/**/*'

# Uncomment when lines are 100 characters or less
# Metrics/LineLength:
#   Max: 100

Metrics/MethodLength:
  Enabled: false

Style/Alias:
  Enabled: false

# Let us whatever delimiters we want eg: %{One Two} or %r%/tmp%
Style/PercentLiteralDelimiters:
  Enabled: false

Style/SignalException:
  Enabled: false

Style/StringLiterals:
  EnforcedStyle: single_quotes

Style/TrivialAccessors:
  ExactNameMatch: true

Style/WordArray:
  Enabled: false

# should be fixed with %i[] in Ruby >= 2.0 (>= jessie)
Style/SymbolArray:
  Enabled: false

# we can't depend on ActiveRecord etc., but we can use squiggly heredocs (<<~)
# when we move to Ruby >= 2.3 (>= stretch)
Layout/IndentHeredoc:
  Enabled: false

# bad advice
Style/GuardClause:
  Enabled: false

# We still have to support ruby 2.1 because of jessie however i suspect many users have there
# editor lint checks set to a higher ruby version hence the warnings
Lint/UnneededDisable:
  Enabled: false
back to top