version: "2"
plugins:
  rubocop:
    enabled: true
    channel: "rubocop-0-48"
  scss-lint:
    enabled: false
  duplication:
    enabled: true
    exclude_patterns:
    - "db/**"
checks:
  argument-count:
    enabled: false
  complex-logic:
    enabled: true
  file-lines:
    enabled: false
  method-complexity:
    enabled: false
  method-count:
    enabled: false
  method-lines:
    enabled: false
  nested-control-flow:
    enabled: true
  return-statements:
    enabled: true
  similar-code:
    enabled: true
  identical-code:
    enabled: true
exclude_patterns:
- "spec/**/*"
- "vendor/**/*"

version: "2"
plugins:
  rubocop:
    enabled: true
    channel: "rubocop-0-48"
  scss-lint:
    enabled: false
  duplication:
    enabled: true
    exclude_patterns:
    - "db/**"
    - "config/initializers/active_record_postgresql_referential_integrity_patch.rb"
checks:
  argument-count:
    enabled: false
  complex-logic:
    enabled: true
  file-lines:
    enabled: false
  method-complexity:
    enabled: false
  method-count:
    enabled: false
  method-lines:
    enabled: false
  nested-control-flow:
    enabled: true
  return-statements:
    enabled: true
  similar-code:
    enabled: true
  identical-code:
    enabled: true
exclude_patterns:
- "spec/**/*"
- "vendor/**/*"

Adjust Codeclimate config to ignore Rails patch
Adjust Codeclimate config to ignore Rails patch

Since it is a file copied from Rails 4, we want to keep it in its
original state and not refactor it.
