# rails cop settings

Rails:
  Enabled: true

#
# False positives:
#   * On embedded models in migrations.
#
Rails/ApplicationRecord:
  Exclude:
    - "db/**/*"

Rails/UnknownEnv:
  Environments:
    - development
    - staging
    - production
    - test

Rails/I18nLazyLookup:
  Enabled: false

Rails/DynamicFindBy:
  Whitelist:
    - find_by_sql # Default value for this cop
    - find_by_id_with_type # custom method defined in the `User` model
