Sha256: 2a396f3f5bd811ae7f13d4a7653b590f56a29a7a4669cef5a698c140da04b4d7

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

inherit_from:
  - ../conf/rubocop.yml

inherit_mode:
  merge:
    - Exclude

AllCops:
  TargetRailsVersion: 5.2
  Exclude:
    - tmp/cache/**/*
    - '**/gemfiles/*.gemfile'

Metrics/BlockLength:
  inherit_mode:
    merge:
      - Exclude
  Exclude:
  - "app/graphql/**/*.rb"
  - "/**/config/environments/*.rb"
  - "/**/lib/tasks/**/*.rake"

Rails:
  Enabled: true

# This conflicts with Strong Migrations, which can't check `change_table`
Rails/ BulkChangeTable:
  Enabled: false

Rails/FilePath:
  Enabled: false

Rails/HasAndBelongsToMany:
  Enabled: false

Rails/RelativeDateConstant:
  # Auto-correct is broken for this cops in some cases. It replaces the
  # constant but does not update references to it.
  AutoCorrect: false

Style/DoubleNegation:
  Enabled: false

Style/MixinUsage:
  Exclude:
  - "bin/**/*"

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

Rails/SaveBang:
  Enabled: true
  AllowImplicitReturn: false
  AutoCorrect: False

Ezcater/RailsTopLevelSqlExecute:
  Description: 'Use `execute` instead of `ActiveRecord::Base.connection.execute` in migrations.'
  Enabled: true
  Include:
    - "db/migrate/**/*"

Ezcater/RailsEnv:
  Description: 'Enforce the use of `Rails.configuration.x.<foo>` instead of checking `Rails.env`.'
  Enabled: true
  Exclude:
    - "/**/config/**/*"
    - "/**/spec/rails_helper.rb"
    - "db/**/*"
    - "/**/lib/tasks/**/*"
    - "/**/spec/lib/tasks/**/*"

Ezcater/DirectEnvCheck:
  Description: 'Enforce the use of `Rails.configuration.x.<foo>` instead of checking `ENV`.'
  Enabled: true
  Exclude:
    - "bin/**/*"
    - "/**/config/**/*"
    - "/**/spec/rails_helper.rb"
    - "db/**/*"
    - "/**/lib/tasks/**/*"
    - "/**/spec/lib/tasks/**/*"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ezcater_rubocop-7.1.1 conf/rubocop_rails.yml