AllCops:
  Exclude:
    - 'vendor/**/*'
    - 'scripts/vendor/**/*'
    - 'platform-tests/src/platform/vendor/**/*'
    - 'tools/metrics/vendor/**/*'
  TargetRubyVersion: 2.2
Metrics/BlockLength:
  # FIXME: Remove when upstream PR is released:
  # https://github.com/alphagov/govuk-lint/pull/87
  Enabled: true
  Exclude:
    - "**/spec/**/*"
Layout/IndentHeredoc:
  # FIXME: Remove when we've upgraded to Ruby 2.3
  Enabled: false

AllCops:
  Exclude:
    - 'vendor/**/*'
    - 'scripts/vendor/**/*'
    - 'platform-tests/src/platform/vendor/**/*'
    - 'tools/metrics/vendor/**/*'
  TargetRubyVersion: 2.5
Metrics/BlockLength:
  # FIXME: Remove when upstream PR is released:
  # https://github.com/alphagov/govuk-lint/pull/87
  Enabled: true
  Exclude:
    - "**/spec/**/*"
Layout/IndentHeredoc:
  # FIXME: Remove when we've upgraded to Ruby 2.3
  Enabled: false

Update Ruby version to 2.5 for Rubocop
Update Ruby version to 2.5 for Rubocop

Ruby 2.2 reached EOL on 2018-03-31 (#1), so we decided to migrate to the latest
stable version.
