https://github.com/wikimedia/operations-puppet
Raw File
Tip revision: 9b3feeeca4047cff6026423c983707476b8d6eea authored by Jaime Crespo on 17 August 2017, 15:19:55 UTC
mariadb: Allow individual instances to configure its innodb BPS
Tip revision: 9b3feee
.rubocop.yml
inherit_from: .rubocop_todo.yml

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

AllCops:
  StyleGuideCopsOnly: true
  Exclude:
    # not a Ruby script
    - 'modules/smokeping/files/smokeping.fcgi'
    # third party modules
    - 'modules/mysql/**/*'
    - 'modules/rsync/**/*'
    - 'modules/stdlib/**/*'
    - 'modules/puppetdbquery/**/*'
    - 'modules/lvm/**/*'
    # bundler installation files
    - 'vendor/**/*'

# 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

# This cannot be enabled because of the naming conventions
# on hiera backend classes imposed by puppet itself
Style/ClassAndModuleCamelCase:
   Exclude:
     - 'modules/wmflib/lib/hiera/backend/*_backend.rb'
back to top