Revision 47bed2fa1cb0c1653ec5f67a17fa2370f303714a authored by Giuseppe Lavagetto on 06 June 2017, 15:57:05 UTC, committed by Giuseppe Lavagetto on 06 June 2017, 16:00:30 UTC
All the mediawiki session/centralauth alerts only expect data points
when there's a problem, so a null datapoint is actually good news. Use
transformNull(metric, 0) to account for this.

Change-Id: I0e678b676ff87936c972af5603674c583a502c17
1 parent 9364ad8
Raw File
.rubocop.yml
inherit_from: .rubocop_todo.yml

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

AllCops:
  StyleGuideCopsOnly: true
  Exclude:
    # 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
back to top