inherit_gem:
  rubocop-shopify: rubocop.yml

require:
  - ./lib/statsd/instrument/rubocop.rb

AllCops:
  TargetRubyVersion: 2.3
  UseCache: true
  CacheRootDirectory: tmp/rubocop
  Exclude:
    - statsd-instrument.gemspec

Naming/FileName:
  Enabled: true
  Exclude:
    - lib/statsd-instrument.rb

# Enable our own cops on our own repo

StatsD/MetricReturnValue:
  Enabled: true

StatsD/MetricValueKeywordArgument:
  Enabled: true

StatsD/PositionalArguments:
  Enabled: true

StatsD/SplatArguments:
  Enabled: true

StatsD/MetaprogrammingPositionalArguments:
  Enabled: true

StatsD/MeasureAsDistArgument:
  Enabled: true

StatsD/MetricPrefixArgument:
  Enabled: true

inherit_gem:
  rubocop-shopify: rubocop.yml

require:
  - ./lib/statsd/instrument/rubocop.rb

AllCops:
  TargetRubyVersion: 2.4
  UseCache: true
  CacheRootDirectory: tmp/rubocop
  Exclude:
    - statsd-instrument.gemspec

Naming/FileName:
  Enabled: true
  Exclude:
    - lib/statsd-instrument.rb

# Enable our own cops on our own repo

StatsD/MetricReturnValue:
  Enabled: true

StatsD/MetricValueKeywordArgument:
  Enabled: true

StatsD/PositionalArguments:
  Enabled: true

StatsD/SplatArguments:
  Enabled: true

StatsD/MetaprogrammingPositionalArguments:
  Enabled: true

StatsD/MeasureAsDistArgument:
  Enabled: true

StatsD/MetricPrefixArgument:
  Enabled: true

Use version 2.4 as TargetVersion for Rubocop.
Use version 2.4 as TargetVersion for Rubocop.